Poll HomeKit Controller locks for state after lock operation (#82058)

This commit is contained in:
J. Nick Koston 2022-11-14 10:54:28 -06:00 committed by GitHub
parent bbda122c99
commit 1ded3ac51e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 2 deletions

View file

@ -175,6 +175,10 @@ class HomeKitEntity(Entity):
"""Define the homekit characteristics the entity cares about."""
raise NotImplementedError
async def async_update(self) -> None:
"""Update the entity."""
await self._accessory.async_request_update()
class AccessoryEntity(HomeKitEntity):
"""A HomeKit entity that is related to an entire accessory rather than a specific service or characteristic."""