Dont rely on config flow to monitor homekit_controller c# changes (#76861)

This commit is contained in:
Jc2k 2022-08-20 21:58:59 +01:00 committed by GitHub
parent 8b1713a691
commit eb0828efdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 36 additions and 83 deletions

View file

@ -119,6 +119,7 @@ async def test_offline_device_raises(hass, controller):
nonlocal is_connected
if not is_connected:
raise AccessoryNotFoundError("any")
await super().async_populate_accessories_state(*args, **kwargs)
async def get_characteristics(self, chars, *args, **kwargs):
nonlocal is_connected
@ -173,6 +174,7 @@ async def test_ble_device_only_checks_is_available(hass, controller):
nonlocal is_available
if not is_available:
raise AccessoryNotFoundError("any")
await super().async_populate_accessories_state(*args, **kwargs)
async def get_characteristics(self, chars, *args, **kwargs):
nonlocal is_available