Fix iCloud listeners (#76437)

This commit is contained in:
epenet 2022-08-08 15:35:45 +02:00 committed by GitHub
parent fe9c101817
commit 3fcdad74fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -20,7 +20,7 @@ async def async_setup_entry(
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
) -> None:
"""Set up device tracker for iCloud component."""
account = hass.data[DOMAIN][entry.unique_id]
account: IcloudAccount = hass.data[DOMAIN][entry.unique_id]
tracked = set[str]()
@callback