mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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)
|
||||
|
||||
|
||||
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."""
|
||||
registry = er.async_get(hass)
|
||||
new_unique_id = f"{tag.uuid}_{key}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user