mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-21 16:16:31 +00:00
Fix device check if not exists (#2585)
This commit is contained in:
parent
8650947f04
commit
7ed9de8014
@ -125,6 +125,7 @@ class DockerAddon(DockerInterface):
|
|||||||
device = self.sys_hardware.get_by_path(device_path)
|
device = self.sys_hardware.get_by_path(device_path)
|
||||||
except HardwareNotFound:
|
except HardwareNotFound:
|
||||||
_LOGGER.debug("Ignore static device path %s", device_path)
|
_LOGGER.debug("Ignore static device path %s", device_path)
|
||||||
|
continue
|
||||||
|
|
||||||
# Check access
|
# Check access
|
||||||
if not self.sys_hardware.policy.allowed_for_access(device):
|
if not self.sys_hardware.policy.allowed_for_access(device):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user