From 689c0d14ec0546509de96e0650398da982bf080e Mon Sep 17 00:00:00 2001 From: Sergiy Maysak Date: Thu, 30 Nov 2023 19:19:10 +0200 Subject: [PATCH] Added typing for return value for async_migrate func. (#104828) --- homeassistant/components/wirelesstag/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/wirelesstag/__init__.py b/homeassistant/components/wirelesstag/__init__.py index f95337dbaf4..cfbdb6bdc92 100644 --- a/homeassistant/components/wirelesstag/__init__.py +++ b/homeassistant/components/wirelesstag/__init__.py @@ -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}"