testing
This commit is contained in:
@@ -13,7 +13,7 @@ let
|
|||||||
yamlFormat = pkgs.formats.yaml { };
|
yamlFormat = pkgs.formats.yaml { };
|
||||||
|
|
||||||
mkLightswitchAutomation = name: lscfg: {
|
mkLightswitchAutomation = name: lscfg: {
|
||||||
id = toString lscfg.id;
|
"${toString lscfg.id}" = {
|
||||||
alias = lscfg.alias;
|
alias = lscfg.alias;
|
||||||
description = lscfg.description;
|
description = lscfg.description;
|
||||||
|
|
||||||
@@ -159,6 +159,7 @@ let
|
|||||||
|
|
||||||
mode = "single";
|
mode = "single";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Generate all automations as list
|
# Generate all automations as list
|
||||||
lightswitchAutomations = mapAttrsToList mkLightswitchAutomation cfg.lightswitch;
|
lightswitchAutomations = mapAttrsToList mkLightswitchAutomation cfg.lightswitch;
|
||||||
|
|||||||
Reference in New Issue
Block a user