Skip to content

Commit 7e5b267

Browse files
authored
Merge pull request #93 from home-assistant/dev
* Pump version to 0.42 * Update util.py (#92) Add an optional extended description… * Update version.json
2 parents f798e75 + d318951 commit 7e5b267

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

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.41'
4+
HASSIO_VERSION = '0.42'
55

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

hassio/dock/util.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from ..const import ARCH_AARCH64, ARCH_ARMHF, ARCH_I386, ARCH_AMD64
55

66

7-
RESIN_BASE_IMAGE = {
7+
HASSIO_BASE_IMAGE = {
88
ARCH_ARMHF: "homeassistant/armhf-base:latest",
99
ARCH_AARCH64: "homeassistant/aarch64-base:latest",
1010
ARCH_I386: "homeassistant/i386-base:latest",
@@ -17,12 +17,14 @@
1717
def dockerfile_template(dockerfile, arch, version, meta_type):
1818
"""Prepare a Hass.IO dockerfile."""
1919
buff = []
20-
resin_image = RESIN_BASE_IMAGE[arch]
20+
hassio_image = HASSIO_BASE_IMAGE[arch]
21+
custom_image = re.compile(r"^#{}:FROM".format(arch))
2122

2223
# read docker
2324
with dockerfile.open('r') as dock_input:
2425
for line in dock_input:
25-
line = TMPL_IMAGE.sub(resin_image, line)
26+
line = TMPL_IMAGE.sub(hassio_image, line)
27+
line = custom_image.sub("FROM", line)
2628
buff.append(line)
2729

2830
# add metadata

version.json

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

0 commit comments

Comments
 (0)