Fix iCloud matching accounts (#42303)
`name` is no longer defined but `username`. Fixes #38393
This commit is contained in:
1 parent
c1a7896a40
commit
51915c86cb
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user