mirror of
https://github.com/home-assistant/core
synced 2024-07-27 18:58:57 +02:00
Fix esphome startup with missing api_version key (#52324)
This commit is contained in:
parent
56d1bf255b
commit
2eebfe6ff3
@ -142,7 +142,7 @@ class RuntimeEntryData:
|
||||
self._storage_contents = restored.copy()
|
||||
|
||||
self.device_info = DeviceInfo.from_dict(restored.pop("device_info"))
|
||||
self.api_version = APIVersion.from_dict(restored.pop("api_version"))
|
||||
self.api_version = APIVersion.from_dict(restored.pop("api_version", {}))
|
||||
infos = []
|
||||
for comp_type, restored_infos in restored.items():
|
||||
if comp_type not in COMPONENT_TYPE_TO_INFO:
|
||||
|
Loading…
Reference in New Issue
Block a user