fmt
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
@@ -116,13 +115,13 @@ let
|
||||
mode: single
|
||||
'';
|
||||
|
||||
lightswitchAutomations = concatStringsSep "\n" (mapAttrsToList (_: automationToYaml) cfg.lightswitch);
|
||||
lightswitchAutomations = concatStringsSep "\n" (
|
||||
mapAttrsToList (_: automationToYaml) cfg.lightswitch
|
||||
);
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.home-assistant.automation = {
|
||||
lightswitch =
|
||||
mkOpt
|
||||
(types.attrsOf (
|
||||
lightswitch = mkOpt (types.attrsOf (
|
||||
types.submodule {
|
||||
options = {
|
||||
id = mkOpt types.int 0 "Automation Id";
|
||||
@@ -137,9 +136,7 @@ in
|
||||
brightnessStepPercent = mkOpt types.int 10 "dimmer step in brightness percent";
|
||||
};
|
||||
}
|
||||
))
|
||||
{ }
|
||||
"lightswitch automations";
|
||||
)) { } "lightswitch automations";
|
||||
};
|
||||
|
||||
config = {
|
||||
|
||||
Reference in New Issue
Block a user