style(esphome): add syntax highlighting
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
286211b5c5
commit
54431b42d7
1 changed files with 17 additions and 3 deletions
|
@ -70,13 +70,27 @@ in {
|
||||||
mkdir -p ${stateDir}
|
mkdir -p ${stateDir}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${optionalString (cfg.secretsFile != null) ''cp -f "$(realpath "${cfg.secretsFile}")" ${stateDir}/secrets.yaml''}
|
${optionalString
|
||||||
|
(cfg.secretsFile != null)
|
||||||
|
# bash
|
||||||
|
''
|
||||||
|
cp -f "$(realpath "${cfg.secretsFile}")" ${stateDir}/secrets.yaml
|
||||||
|
''}
|
||||||
|
|
||||||
${optionalString cfg.deleteUnmanaged ''find ${stateDir} -name "*.yaml" ! -name "secrets.yaml" -delete''}
|
${optionalString
|
||||||
|
cfg.deleteUnmanaged
|
||||||
|
# bash
|
||||||
|
''
|
||||||
|
find ${stateDir} -name "*.yaml" ! -name "secrets.yaml" -delete
|
||||||
|
''}
|
||||||
|
|
||||||
${concatMapStringsSep
|
${concatMapStringsSep
|
||||||
"\n"
|
"\n"
|
||||||
(dev: ''cp -f "$(realpath "${dev.file}")" ${stateDir}/"${dev.name}"'')
|
(dev:
|
||||||
|
# bash
|
||||||
|
''
|
||||||
|
cp -f "$(realpath "${dev.file}")" ${stateDir}/"${dev.name}"
|
||||||
|
'')
|
||||||
(mapAttrsToList mkESPConf cfg.firmwareConfigs)}
|
(mapAttrsToList mkESPConf cfg.firmwareConfigs)}
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue