mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-06 01:19:36 +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:
@@ -26,14 +26,10 @@ class DockerHomeAssistant(DockerInterface):
|
||||
@property
|
||||
def devices(self):
|
||||
"""Create list of special device to map into docker."""
|
||||
if not self._homeassistant.devices:
|
||||
return None
|
||||
|
||||
devices = []
|
||||
for device in self._homeassistant.devices:
|
||||
devices.append("/dev/{0}:/dev/{0}:rwm".format(device))
|
||||
|
||||
return devices
|
||||
for device in self._hardware.serial_devices:
|
||||
devices.append(f"{device}:{device}:rwm")
|
||||
return devices or None
|
||||
|
||||
def _run(self):
|
||||
"""Run docker image.
|
||||
|
||||
Reference in New Issue
Block a user