Merge pull request #939 from home-assistant/dev

Release 147
This commit is contained in:
Pascal Vizeli 2019-03-07 21:12:20 +01:00 committed by GitHub
commit c544fff2b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -122,7 +122,10 @@ class Addon(CoreSysAttributes):
def _set_update(self, image: str, version: str) -> None:
"""Update version of add-on."""
self._data.system[self._id] = deepcopy(self._data.cache[self._id])
self._data.user[self._id][ATTR_VERSION] = version
self._data.user[self._id].update({
ATTR_VERSION: version,
ATTR_IMAGE: image,
})
self.save_data()
def _restore_data(self, user: Dict[str, Any], system: Dict[str, Any], image: str) -> None:

View File

@ -2,7 +2,7 @@
from pathlib import Path
from ipaddress import ip_network
HASSIO_VERSION = "146"
HASSIO_VERSION = "147"
URL_HASSIO_ADDONS = "https://github.com/home-assistant/hassio-addons"
URL_HASSIO_VERSION = "https://s3.amazonaws.com/hassio-version/{channel}.json"