mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 12:29:08 +00:00
Remove home-assistant devices options (#293)
* Remove home-assistant devices options * fix version mix/max snapshot * fix wrong path * fix import * fix restore * fix * make exists call robust * Update addon.py * remove old custom function * Update homeassistant.py * Update homeassistant.py * Update homeassistant.py * Update snapshot.py * Update validate.py * Update snapshot.py * Update homeassistant.py * fix lint 1 * fix lint * fix lint * Update snapshot.py * Update homeassistant.py * Update homeassistant.py * Update homeassistant.py
This commit is contained in:
@@ -100,8 +100,8 @@ class DockerAddon(DockerInterface):
|
||||
|
||||
# Auto mapping UART devices
|
||||
if self.addon.auto_uart:
|
||||
for uart_dev in self._hardware.serial_devices:
|
||||
devices.append("{0}:{0}:rwm".format(uart_dev))
|
||||
for device in self._hardware.serial_devices:
|
||||
devices.append(f"{device}:{device}:rwm")
|
||||
|
||||
# Return None if no devices is present
|
||||
return devices or None
|
||||
@@ -135,7 +135,7 @@ class DockerAddon(DockerInterface):
|
||||
"""Return tmpfs for docker add-on."""
|
||||
options = self.addon.tmpfs
|
||||
if options:
|
||||
return {"/tmpfs": "{}".format(options)}
|
||||
return {"/tmpfs": f"{options}"}
|
||||
return None
|
||||
|
||||
@property
|
||||
@@ -324,7 +324,7 @@ class DockerAddon(DockerInterface):
|
||||
"""
|
||||
try:
|
||||
with tar_file.open("rb") as read_tar:
|
||||
self._docker.api.load_image(read_tar)
|
||||
self._docker.api.load_image(read_tar, quiet=True)
|
||||
|
||||
image = self._docker.images.get(self.image)
|
||||
image.tag(self.image, tag=tag)
|
||||
|
||||
Reference in New Issue
Block a user