Remove None from dict.get(key, None) (#33794)
This commit is contained in:
parent
d54ee77375
commit
46bbe816f6
45 changed files with 104 additions and 110 deletions
|
@ -186,7 +186,7 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry) -> bool
|
|||
if account_identifier is None:
|
||||
return None
|
||||
|
||||
icloud_account = hass.data[DOMAIN].get(account_identifier, None)
|
||||
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue