mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Separate lighting zone controls for battery/AC mode https://github.com/seerge/g-helper/issues/2739
This commit is contained in:
@@ -196,6 +196,11 @@ public static class AppConfig
|
||||
return Get(name) != 0;
|
||||
}
|
||||
|
||||
public static bool IsOnBattery(string zone)
|
||||
{
|
||||
return Get(zone + "_bat", Get(zone)) != 0;
|
||||
}
|
||||
|
||||
public static string GetString(string name, string empty = null)
|
||||
{
|
||||
if (config.ContainsKey(name))
|
||||
|
||||
Reference in New Issue
Block a user