Use assignment expressions 21 (#57970)
This commit is contained in:
parent
d20936d175
commit
ea7252e377
17 changed files with 28 additions and 56 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue