diff --git a/comitup_watch/devicemon.py b/comitup_watch/devicemon.py index d32c6aa..a22a4b6 100644 --- a/comitup_watch/devicemon.py +++ b/comitup_watch/devicemon.py @@ -35,6 +35,9 @@ def __init__(self, bus, event_queue): super().__init__(bus) async def startup(self) -> None: + + await asyncio.sleep(0.1) + for devpath in await self.GetAllDevices(): # print(devpath) await self.add_dev_path(devpath) @@ -59,8 +62,6 @@ async def startup(self) -> None: async def add_dev_path(self, path): - # print("Added device path", path) - if str(path) not in self.dev_paths: self.dev_paths |= set(str(path)) @@ -82,8 +83,6 @@ async def add_dev_path(self, path): @ravel.signal(name="DeviceAdded", in_signature="o") async def device_added_signal(self, path): - # print(path) - # print("strpath", path) await self.add_dev_path(path)