Make homekit_controller a local push integration (#32213)

This commit is contained in:
Jc2k
2020-02-26 18:35:53 +00:00
committed by GitHub
parent c92aa30663
commit 853d6cda25
5 changed files with 89 additions and 2 deletions

View File

@@ -40,6 +40,11 @@ class Helper:
char_name = CharacteristicsTypes.get_short(char.type)
self.characteristics[(service_name, char_name)] = char
async def update_named_service(self, service, characteristics):
"""Update a service."""
self.pairing.testing.update_named_service(service, characteristics)
await self.hass.async_block_till_done()
async def poll_and_get_state(self):
"""Trigger a time based poll and return the current entity state."""
await time_changed(self.hass, 60)