Skip to content

Commit

Permalink
Wifi: enable hotspot if setting is unset(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Jan 15, 2025
1 parent 1a408fe commit f3f6681
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3f6681

Please sign in to comment.