mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-02 09:58:39 +00:00
fix setting toggleItem, periodic pulling
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user