The hotspot starts on boot

Nothing started the hotspot since hotspot_on_startup moved out of the
API, and NetworkManager does not autoconnect the Hotspot connection.
The Controller now starts it once per boot unless hotspot.on_startup is
false; a legacy wrolpi.yaml hotspot_on_startup: false is migrated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-13 16:26:24 -06:00
parent b83a9cf017
commit dfa03c662e
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
7 changed files with 172 additions and 4 deletions

View file

@ -123,6 +123,10 @@ async def lifespan(app: FastAPI):
else:
logger.info("Primary drive not mounted - using default configuration")
# After the config (and any migrated hotspot settings) are loaded. Starting can take a while; do not block.
from controller.lib.admin import start_hotspot_on_boot
app.state.hotspot_on_boot_task = asyncio.create_task(asyncio.to_thread(start_hotspot_on_boot))
# Initialize cached status
app.state.cached_status = {}