mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-13 13:00:16 +00:00
Append devlinks to serial dev_list (#1131)
* append devlinks to dev_list * replace eudev-libs with eudev * include only devlinks starting with /dev/serial/by-id * add missing package, move udev init to entry.sh * fix mode on entry.sh * Update homeassistant.py * Update homeassistant.py
This commit is contained in:
@@ -40,14 +40,6 @@ class DockerHomeAssistant(DockerInterface):
|
||||
"""Return timeout for Docker actions."""
|
||||
return 60
|
||||
|
||||
@property
|
||||
def devices(self):
|
||||
"""Create list of special device to map into Docker."""
|
||||
devices = []
|
||||
for device in self.sys_hardware.serial_devices:
|
||||
devices.append(f"{device}:{device}:rwm")
|
||||
return devices or None
|
||||
|
||||
@property
|
||||
def ip_address(self) -> IPv4Address:
|
||||
"""Return IP address of this container."""
|
||||
@@ -73,7 +65,6 @@ class DockerHomeAssistant(DockerInterface):
|
||||
detach=True,
|
||||
privileged=True,
|
||||
init=True,
|
||||
devices=self.devices,
|
||||
network_mode="host",
|
||||
environment={
|
||||
"HASSIO": self.sys_docker.network.supervisor,
|
||||
@@ -106,7 +97,6 @@ class DockerHomeAssistant(DockerInterface):
|
||||
command,
|
||||
privileged=True,
|
||||
init=True,
|
||||
devices=self.devices,
|
||||
detach=True,
|
||||
stdout=True,
|
||||
stderr=True,
|
||||
|
||||
Reference in New Issue
Block a user