Use assignment expressions 19 (#57968)
This commit is contained in:
parent
786e1f9b6a
commit
ff853b2d53
23 changed files with 24 additions and 51 deletions
|
@ -129,8 +129,7 @@ class AcerSwitch(SwitchEntity):
|
|||
self._attr_available = False
|
||||
|
||||
for key in self._attributes:
|
||||
msg = CMD_DICT.get(key)
|
||||
if msg:
|
||||
if msg := CMD_DICT.get(key):
|
||||
awns = self._write_read_format(msg)
|
||||
self._attributes[key] = awns
|
||||
self._attr_extra_state_attributes = self._attributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue