Use assignment expressions 21 (#57970)

This commit is contained in:
Marc Mueller 2021-10-20 17:47:46 +02:00 committed by GitHub
parent d20936d175
commit ea7252e377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 28 additions and 56 deletions

View file

@ -68,9 +68,7 @@ async def async_setup(hass: HomeAssistant, base_config: ConfigType) -> bool:
"""Set up for Vera controllers."""
hass.data[DOMAIN] = {}
config = base_config.get(DOMAIN)
if not config:
if not (config := base_config.get(DOMAIN)):
return True
hass.async_create_task(