mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-01 17:38:40 +00:00
add Wifi LTE command execution
This commit is contained in:
@ -35,6 +35,7 @@ class Settings {
|
||||
private static var mCacheConfig as Lang.Boolean = false;
|
||||
private static var mClearCache as Lang.Boolean = false;
|
||||
private static var mVibrate as Lang.Boolean = false;
|
||||
private static var mWifiLteExecution as Lang.Boolean = false;
|
||||
//! seconds
|
||||
private static var mAppTimeout as Lang.Number = 0;
|
||||
//! seconds
|
||||
@ -69,6 +70,7 @@ class Settings {
|
||||
mMenuAlignment = Properties.getValue("menu_alignment");
|
||||
mIsSensorsLevelEnabled = Properties.getValue("enable_battery_level");
|
||||
mBatteryRefreshRate = Properties.getValue("battery_level_refresh_rate");
|
||||
mWifiLteExecution = Properties.getValue("wifi_lte_execution");
|
||||
}
|
||||
|
||||
//! A webhook is required for non-privileged API calls.
|
||||
@ -270,4 +272,12 @@ class Settings {
|
||||
}
|
||||
}
|
||||
|
||||
//! Get the value of the WiFi/LTE toggle in settings.
|
||||
//!
|
||||
//! @return The state of the toggle.
|
||||
//
|
||||
static function getWifiLteExecutionEnabled() as Lang.Boolean {
|
||||
return mWifiLteExecution;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user