Fix restore on older snapshots (#1655)

This commit is contained in:
Pascal Vizeli 2020-04-12 11:56:37 +02:00 committed by GitHub
parent 20c1183450
commit 72b7d2a123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,10 +448,6 @@ class Snapshot(CoreSysAttributes):
self.sys_homeassistant.boot = self.homeassistant[ATTR_BOOT]
self.sys_homeassistant.wait_boot = self.homeassistant[ATTR_WAIT_BOOT]
# Was not needed before
if self.homeassistant[ATTR_IMAGE]:
self.sys_homeassistant.image = self.homeassistant[ATTR_IMAGE]
# API/Proxy
self.sys_homeassistant.api_port = self.homeassistant[ATTR_PORT]
self.sys_homeassistant.api_ssl = self.homeassistant[ATTR_SSL]