I am not sure whether this is a HAP-python issue or a home assistant issue.
After pairing/unpairing sequence is done twice in Home Assistant, HAP-python device no longer shows up in the list of 'devices'.
Restart of HAP-python fixes the issue.
Steps to reproduce:
run python3 main.py in the root folder of HAP-python repository
- Configure (pair) the device in home assistant (Devices tab)
- Delete it (unpair)
- Device will automatically be shown again and ready for pairing
- Configure (pair) the device in home assistant (Devices tab)
- Delete it (unpair)
- Device will not show up for pairing anymore
- To fix: restart
python3 main.py
HAP-version: V4.6.0
Home Assistant Version: 2023.2.5