ikalchev / HAP-python

A python implementation of the HomeKit Accessory Protocol (HAP)
Other
619 stars 118 forks source link

Device not discoverable in home assistant after unpairing twice #435

Open mzakharocsc opened 1 year ago

mzakharocsc commented 1 year ago

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

  1. Configure (pair) the device in home assistant (Devices tab)
  2. Delete it (unpair)
  3. Device will automatically be shown again and ready for pairing
  4. Configure (pair) the device in home assistant (Devices tab)
  5. Delete it (unpair)
  6. Device will not show up for pairing anymore
  7. To fix: restart python3 main.py

HAP-version: V4.6.0 Home Assistant Version: 2023.2.5