diff --git a/supervisor/hardware/data.py b/supervisor/hardware/data.py index ecd230cf1..d5ca51d34 100644 --- a/supervisor/hardware/data.py +++ b/supervisor/hardware/data.py @@ -47,7 +47,7 @@ class Device: Path(udevice.device_node), Path(udevice.sys_path), udevice.subsystem, - None if not udevice.parent else Path(udevice.parent.sys_path), + None if udevice.parent is None else Path(udevice.parent.sys_path), [Path(node) for node in udevice.device_links], {attr: udevice.properties[attr] for attr in udevice.properties}, [Path(node.sys_path) for node in udevice.children], diff --git a/supervisor/store/__init__.py b/supervisor/store/__init__.py index f6839189a..7266a8f78 100644 --- a/supervisor/store/__init__.py +++ b/supervisor/store/__init__.py @@ -108,7 +108,7 @@ class StoreManager(CoreSysAttributes): self.repositories[repository.slug] = repository repos = new_rep - old_rep - tasks = [_add_repository(url) for url in repos] + tasks = [self.sys_create_task(_add_repository(url)) for url in repos] if tasks: await asyncio.wait(tasks)