mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 02:19:31 +00:00
Use assignment expressions [K-Z] (#66881)
This commit is contained in:
@@ -134,8 +134,7 @@ class NestEventMediaStore(EventMediaStore):
|
||||
"""Load data."""
|
||||
if self._data is None:
|
||||
self._devices = await self._get_devices()
|
||||
data = await self._store.async_load()
|
||||
if data is None:
|
||||
if (data := await self._store.async_load()) is None:
|
||||
_LOGGER.debug("Loaded empty event store")
|
||||
self._data = {}
|
||||
elif isinstance(data, dict):
|
||||
|
||||
Reference in New Issue
Block a user