1
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:
J. Nick Koston 2021-06-29 10:50:29 -10:00 committed by GitHub
parent 56d1bf255b
commit 2eebfe6ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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