mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Reduce overhead to write HomeKit Controller state (#102365)
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user