mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
parent
f26826d949
commit
d207c37c33
@ -125,7 +125,7 @@ class HKDevice:
|
||||
def add_watchable_characteristics(self, characteristics):
|
||||
"""Add (aid, iid) pairs that we need to poll."""
|
||||
self.watchable_characteristics.extend(characteristics)
|
||||
self.hass.add_job(self.pairing.subscribe(characteristics))
|
||||
self.hass.async_create_task(self.pairing.subscribe(characteristics))
|
||||
|
||||
def remove_watchable_characteristics(self, accessory_id):
|
||||
"""Remove all pollable characteristics by accessory id."""
|
||||
|
@ -103,7 +103,7 @@ async def setup_test_accessories(hass, accessories):
|
||||
)
|
||||
config_entry.add_to_hass(hass)
|
||||
|
||||
await config_entry.async_setup(hass)
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
return config_entry, pairing
|
||||
|
Loading…
x
Reference in New Issue
Block a user