This commit is contained in:
mjallen18
2025-11-21 11:34:39 -06:00
parent 66fefbe907
commit 71b8fc9d0f

View File

@@ -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;