fix setting toggleItem, periodic pulling

This commit is contained in:
Vincent Elger Zwanenburg
2025-07-21 19:45:14 +01:00
parent db3fbd9886
commit d32135af63
2 changed files with 33 additions and 15 deletions

View File

@ -255,6 +255,8 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
var url = getUrl(id, s);
if ((! phoneConnected || ! internetAvailable) && Settings.getWifiLteExecutionEnabled()) {
// Undo the toggle
setEnabled(!isEnabled());
wifiPrompt(s);
return;
}