Use assignment expressions 33 (#58717)

This commit is contained in:
Marc Mueller 2021-10-30 16:32:41 +02:00 committed by GitHub
parent b1d49b3b66
commit 7063c05127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 22 additions and 52 deletions

View file

@ -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