Use assignment expressions 19 (#57968)
This commit is contained in:
parent
786e1f9b6a
commit
ff853b2d53
23 changed files with 24 additions and 51 deletions
|
@ -89,8 +89,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up an Arlo IP sensor."""
|
||||
arlo = hass.data.get(DATA_ARLO)
|
||||
if not arlo:
|
||||
if not (arlo := hass.data.get(DATA_ARLO)):
|
||||
return
|
||||
|
||||
sensors = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue