Fix esphome startup with missing api_version key (#52324)
This commit is contained in:
parent
56d1bf255b
commit
2eebfe6ff3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue