Use assignment expressions 24 (#58181)
This commit is contained in:
parent
eab235173b
commit
ea2e94a4e5
21 changed files with 29 additions and 66 deletions
|
@ -95,8 +95,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||
if not sensors:
|
||||
return
|
||||
|
||||
store = hass.data.get(DATA_ARWN)
|
||||
if store is None:
|
||||
if (store := hass.data.get(DATA_ARWN)) is None:
|
||||
store = hass.data[DATA_ARWN] = {}
|
||||
|
||||
if isinstance(sensors, ArwnSensor):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue