Use assignment expressions 33 (#58717)
This commit is contained in:
parent
b1d49b3b66
commit
7063c05127
21 changed files with 22 additions and 52 deletions
|
@ -34,8 +34,7 @@ class EntityMapStorage:
|
|||
|
||||
async def async_initialize(self):
|
||||
"""Get the pairing cache data."""
|
||||
raw_storage = await self.store.async_load()
|
||||
if not raw_storage:
|
||||
if not (raw_storage := await self.store.async_load()):
|
||||
# There is no cached data about HomeKit devices yet
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue