mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Added typing for return value for async_migrate func. (#104828)
This commit is contained in:
parent
f50cd5ab5e
commit
689c0d14ec
@ -128,7 +128,9 @@ class WirelessTagPlatform:
|
|||||||
self.api.start_monitoring(push_callback)
|
self.api.start_monitoring(push_callback)
|
||||||
|
|
||||||
|
|
||||||
def async_migrate_unique_id(hass: HomeAssistant, tag: SensorTag, domain: str, key: str):
|
def async_migrate_unique_id(
|
||||||
|
hass: HomeAssistant, tag: SensorTag, domain: str, key: str
|
||||||
|
) -> None:
|
||||||
"""Migrate old unique id to new one with use of tag's uuid."""
|
"""Migrate old unique id to new one with use of tag's uuid."""
|
||||||
registry = er.async_get(hass)
|
registry = er.async_get(hass)
|
||||||
new_unique_id = f"{tag.uuid}_{key}"
|
new_unique_id = f"{tag.uuid}_{key}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user