Skip to content

Commit

Permalink
wifi: restart hotspot after changing credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Feb 19, 2025
1 parent 44e4a3d commit 8e60b24
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ async def set_hotspot_credentials(self, credentials: WifiCredentials) -> None:
self._settings_manager.settings.hotspot_ssid = credentials.ssid
self._settings_manager.settings.hotspot_password = credentials.password
self._settings_manager.save()
await self.disable_hotspot(save_settings=False)
await self.enable_hotspot()

def hotspot_credentials(self) -> WifiCredentials:
try:
Expand Down

0 comments on commit 8e60b24

Please sign in to comment.