Remove None from dict.get(key, None) (#33794)

This commit is contained in:
springstan 2020-04-07 21:06:05 +02:00 committed by GitHub
parent d54ee77375
commit 46bbe816f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 104 additions and 110 deletions

View file

@ -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: