From f3f66816e96676ea49a91823431da892137edd44 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Wed, 15 Jan 2025 19:24:58 -0300 Subject: [PATCH] Wifi: enable hotspot if setting is unset(null) --- .../wifi/wifi_handlers/networkmanager/networkmanager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/services/wifi/wifi_handlers/networkmanager/networkmanager.py b/core/services/wifi/wifi_handlers/networkmanager/networkmanager.py index e80d7006cd..da7c6a5dfd 100644 --- a/core/services/wifi/wifi_handlers/networkmanager/networkmanager.py +++ b/core/services/wifi/wifi_handlers/networkmanager/networkmanager.py @@ -579,6 +579,9 @@ async def hotspot_watchdog(self) -> None: """ This takes care of the smart-hotspot feature. It will enable the hotspot if we stay disconnected for longer than 30 seconds """ + if self._settings_manager.settings.hotspot_enabled in [True, None]: + await asyncio.sleep(5) + await self.enable_hotspot() while True: await asyncio.sleep(30) if not self._settings_manager.settings.smart_hotspot_enabled: