testing
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
@@ -161,9 +162,6 @@ let
|
||||
|
||||
# Generate all automations as list
|
||||
lightswitchAutomations = mapAttrsToList mkLightswitchAutomation cfg.lightswitch;
|
||||
|
||||
# YAML format generator
|
||||
yamlFormat = pkgs.formats.yaml { };
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.home-assistant.automation = {
|
||||
@@ -190,6 +188,6 @@ in
|
||||
|
||||
config = {
|
||||
environment.etc."lightswitch-automations.yaml".source =
|
||||
yamlFormat.generate "lightswitch-automations.yaml" allAutomations;
|
||||
yamlFormat.generate "lightswitch-automations.yaml" lightswitchAutomations;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user