Only callback when value or status changes for processing HKC events (#102370)

This commit is contained in:
J. Nick Koston 2023-10-20 12:46:18 -10:00 committed by GitHub
parent 55a8f01dcf
commit a2c60d9015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 6 deletions

View file

@ -155,6 +155,13 @@ class Helper:
assert state is not None
return state
async def async_set_aid_iid_status(
self, aid_iid_status: list[tuple[int, int, int]]
) -> None:
"""Set the status of a set of aid/iid pairs."""
self.pairing.testing.set_aid_iid_status(aid_iid_status)
await self.hass.async_block_till_done()
@callback
def async_assert_service_values(
self, service: str, characteristics: dict[str, Any]