fix snapshot with custom image

This commit is contained in:
pvizeli
2017-07-11 16:52:16 +02:00
parent 906c4e03fb
commit e5fc6846e0
4 changed files with 38 additions and 6 deletions

View File

@@ -73,9 +73,12 @@ class HomeAssistant(JsonConfig):
if image is None and version is None:
self._data.pop(ATTR_IMAGE, None)
self._data.pop(ATTR_VERSION, None)
self.docker.image = self.image
else:
if image:
self._data[ATTR_IMAGE] = image
self.docker.image = image
if version:
self._data[ATTR_VERSION] = version
self.save()