Skip to content

Commit

Permalink
Address homekit_controller feedback on #32212 and #32213 (#32228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jc2k authored Feb 27, 2020
1 parent f26826d commit d207c37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/homekit_controller/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def remove_pollable_characteristics(self, accessory_id):
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."""
Expand Down
2 changes: 1 addition & 1 deletion tests/components/homekit_controller/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d207c37

Please sign in to comment.