wifi_manager: wait for wifi device (#35974)

wait
master
Maxime Desroches 20 hours ago committed by GitHub
parent e97ae07589
commit 0bbceb8539
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      system/ui/lib/wifi_manager.py

@ -101,8 +101,8 @@ class WifiManager:
"""Connect to the DBus system bus."""
try:
self.bus = await MessageBus(bus_type=BusType.SYSTEM).connect()
if not await self._find_wifi_device():
raise ValueError("No Wi-Fi device found")
while not await self._find_wifi_device():
await asyncio.sleep(1)
await self._setup_signals(self.device_path)
self.active_ap_path = await self.get_active_access_point()

Loading…
Cancel
Save