File tree Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Expand file tree Collapse file tree 6 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -393,5 +393,7 @@ def get_schema(self, addon):
393
393
"""Create a schema for addon options."""
394
394
raw_schema = self ._system_data [addon ][ATTR_SCHEMA ]
395
395
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 )))
Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ def check_network(data):
62
62
vol .Optional (ATTR_ENVIRONMENT ): {vol .Match (r"\w*" ): vol .Coerce (str )},
63
63
vol .Optional (ATTR_PRIVILEGED ): [vol .In (PRIVILEGE_ALL )],
64
64
vol .Required (ATTR_OPTIONS ): dict ,
65
- vol .Required (ATTR_SCHEMA ): {
65
+ vol .Required (ATTR_SCHEMA ): vol . Any ( {
66
66
vol .Coerce (str ): vol .Any (ADDON_ELEMENT , [
67
67
vol .Any (ADDON_ELEMENT , {vol .Coerce (str ): ADDON_ELEMENT })
68
68
])
69
- },
69
+ }, False ),
70
70
vol .Optional (ATTR_IMAGE ): vol .Match (r"\w*/\w*" ),
71
71
}, check_network ), extra = vol .ALLOW_EXTRA )
72
72
Original file line number Diff line number Diff line change 1
1
"""Const file for HassIO."""
2
2
from pathlib import Path
3
3
4
- HASSIO_VERSION = '0.36 '
4
+ HASSIO_VERSION = '0.37 '
5
5
6
6
URL_HASSIO_VERSION = ('https://raw.githubusercontent.com/home-assistant/'
7
7
'hassio/master/version.json' )
Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ def _remove(self):
206
206
207
207
Need run inside executor.
208
208
"""
209
- if self . _is_running ():
210
- self ._stop ()
209
+ # cleanup container
210
+ self ._stop ()
211
211
212
212
_LOGGER .info (
213
213
"Remove docker %s with latest and %s" , self .image , self .version )
Original file line number Diff line number Diff line change 5
5
6
6
7
7
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 " ,
12
12
}
13
13
14
14
TMPL_IMAGE = re .compile (r"%%BASE_IMAGE%%" )
Original file line number Diff line number Diff line change 1
1
{
2
- "hassio" : " 0.36 " ,
2
+ "hassio" : " 0.37 " ,
3
3
"homeassistant" : " 0.46.1" ,
4
4
"resinos" : " 0.8" ,
5
5
"resinhup" : " 0.1" ,
You can’t perform that action at this time.
0 commit comments