Reduce overhead to write HomeKit Controller state (#102365)

This commit is contained in:
J. Nick Koston
2023-10-19 20:50:07 -10:00
committed by GitHub
parent 84d0907fc8
commit 3014a651c3
5 changed files with 33 additions and 30 deletions

View File

@ -437,9 +437,10 @@ class HKDevice:
@callback
def async_migrate_unique_id(
self, old_unique_id: str, new_unique_id: str, platform: str
self, old_unique_id: str, new_unique_id: str | None, platform: str
) -> None:
"""Migrate legacy unique IDs to new format."""
assert new_unique_id is not None
_LOGGER.debug(
"Checking if unique ID %s on %s needs to be migrated",
old_unique_id,