Skip to content

Commit 8233083

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents ef96579 + 106378d commit 8233083

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

hassio/addons/data.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,5 +393,7 @@ def get_schema(self, addon):
393393
"""Create a schema for addon options."""
394394
raw_schema = self._system_data[addon][ATTR_SCHEMA]
395395

396-
schema = vol.Schema(vol.All(dict, validate_options(raw_schema)))
397-
return schema
396+
if isinstance(raw_schema, bool):
397+
return vol.Schema(dict)
398+
399+
return vol.Schema(vol.All(dict, validate_options(raw_schema)))

hassio/addons/validate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ def check_network(data):
6262
vol.Optional(ATTR_ENVIRONMENT): {vol.Match(r"\w*"): vol.Coerce(str)},
6363
vol.Optional(ATTR_PRIVILEGED): [vol.In(PRIVILEGE_ALL)],
6464
vol.Required(ATTR_OPTIONS): dict,
65-
vol.Required(ATTR_SCHEMA): {
65+
vol.Required(ATTR_SCHEMA): vol.Any({
6666
vol.Coerce(str): vol.Any(ADDON_ELEMENT, [
6767
vol.Any(ADDON_ELEMENT, {vol.Coerce(str): ADDON_ELEMENT})
6868
])
69-
},
69+
}, False),
7070
vol.Optional(ATTR_IMAGE): vol.Match(r"\w*/\w*"),
7171
}, check_network), extra=vol.ALLOW_EXTRA)
7272

hassio/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Const file for HassIO."""
22
from pathlib import Path
33

4-
HASSIO_VERSION = '0.36'
4+
HASSIO_VERSION = '0.37'
55

66
URL_HASSIO_VERSION = ('https://raw.githubusercontent.com/home-assistant/'
77
'hassio/master/version.json')

hassio/dock/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def _remove(self):
206206
207207
Need run inside executor.
208208
"""
209-
if self._is_running():
210-
self._stop()
209+
# cleanup container
210+
self._stop()
211211

212212
_LOGGER.info(
213213
"Remove docker %s with latest and %s", self.image, self.version)

hassio/dock/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66

77
RESIN_BASE_IMAGE = {
8-
ARCH_ARMHF: "resin/armhf-alpine:3.5",
9-
ARCH_AARCH64: "resin/aarch64-alpine:3.5",
10-
ARCH_I386: "resin/i386-alpine:3.5",
11-
ARCH_AMD64: "resin/amd64-alpine:3.5",
8+
ARCH_ARMHF: "homeassistant/armhf-base:latest",
9+
ARCH_AARCH64: "homeassistant/aarch64-base:latest",
10+
ARCH_I386: "homeassistant/i386-base:latest",
11+
ARCH_AMD64: "homeassistant/amd64-base:latest",
1212
}
1313

1414
TMPL_IMAGE = re.compile(r"%%BASE_IMAGE%%")

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"hassio": "0.36",
2+
"hassio": "0.37",
33
"homeassistant": "0.46.1",
44
"resinos": "0.8",
55
"resinhup": "0.1",

0 commit comments

Comments
 (0)