Added typing for return value for async_migrate func. (#104828)

This commit is contained in:
Sergiy Maysak 2023-11-30 19:19:10 +02:00 committed by GitHub
parent f50cd5ab5e
commit 689c0d14ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}"