1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Reset default config with None (#320)

* Update addons.py

* Update addon.py

* Update API.md
This commit is contained in:
Pascal Vizeli
2018-01-18 10:21:16 +01:00
committed by GitHub
parent 94b44ec7fe
commit 70a721a47d
3 changed files with 6 additions and 3 deletions

View File

@@ -120,7 +120,10 @@ class Addon(CoreSysAttributes):
@options.setter
def options(self, value):
"""Store user addon options."""
self._data.user[self._id][ATTR_OPTIONS] = deepcopy(value)
if value is None:
self._data.user[self._id][ATTR_OPTIONS] = {}
else:
self._data.user[self._id][ATTR_OPTIONS] = deepcopy(value)
self._data.save()
@property