Fix iCloud matching accounts (#42303)
`name` is no longer defined but `username`. Fixes #38393
This commit is contained in:
parent
c1a7896a40
commit
51915c86cb
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry) -> bool
|
|||
icloud_account = hass.data[DOMAIN].get(account_identifier)
|
||||
if icloud_account is None:
|
||||
for account in hass.data[DOMAIN].values():
|
||||
if account.name == account_identifier:
|
||||
if account.username == account_identifier:
|
||||
icloud_account = account
|
||||
|
||||
if icloud_account is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue