1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Fix device bug (#1078)

This commit is contained in:
Pascal Vizeli
2019-05-09 11:41:37 +02:00
committed by GitHub
parent dc4f38ebd0
commit b2c3157361
2 changed files with 6 additions and 2 deletions

View File

@@ -126,7 +126,11 @@ class DockerAddon(DockerInterface):
@property
def devices(self) -> List[str]:
"""Return needed devices."""
devices = self.addon.devices or []
devices = []
# Extend add-on config
if self.addon.devices:
devices.extend(self.addon.devices)
# Use audio devices
if self.addon.with_audio and self.sys_hardware.support_audio: