Use assignment expressions 32 (#58716)
This commit is contained in:
parent
a48ddcadd4
commit
887d04be60
16 changed files with 27 additions and 45 deletions
|
@ -82,8 +82,7 @@ class AccessoryAidStorage:
|
|||
aidstore = get_aid_storage_filename_for_entry_id(self._entry)
|
||||
self.store = Store(self.hass, AID_MANAGER_STORAGE_VERSION, aidstore)
|
||||
|
||||
raw_storage = await self.store.async_load()
|
||||
if not raw_storage:
|
||||
if not (raw_storage := await self.store.async_load()):
|
||||
# There is no data about aid allocations yet
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue