diff --git a/.gitignore b/.gitignore index 14c9abf..b03e7d3 100644 --- a/.gitignore +++ b/.gitignore @@ -62,4 +62,6 @@ appsettings.Development.json # remove HA integration test files from git tests/Integration/HA/config/* -!tests/Integration/HA/config/*.yaml \ No newline at end of file +!tests/Integration/HA/config/*.yaml + +*.idea \ No newline at end of file diff --git a/src/NetDaemon.Templates.Project/templates/netdaemon/.template.config/template.json b/src/NetDaemon.Templates.Project/templates/netdaemon/.template.config/template.json index c86708a..3acbf35 100644 --- a/src/NetDaemon.Templates.Project/templates/netdaemon/.template.config/template.json +++ b/src/NetDaemon.Templates.Project/templates/netdaemon/.template.config/template.json @@ -26,7 +26,6 @@ "use-ssl": { "type": "parameter", "datatype": "bool", - "replaces": "ha_ssl", "defaultValue": "false" }, "token": { diff --git a/src/NetDaemon.Templates.Project/templates/netdaemon/appsettings.json b/src/NetDaemon.Templates.Project/templates/netdaemon/appsettings.json index 72b7aab..04aa2b5 100644 --- a/src/NetDaemon.Templates.Project/templates/netdaemon/appsettings.json +++ b/src/NetDaemon.Templates.Project/templates/netdaemon/appsettings.json @@ -9,8 +9,12 @@ "HomeAssistant": { "Host": "ha_host", "Port": ha_port, - "Ssl": ha_ssl, - "Token": "ha_token" + //#if (use-ssl) + "Ssl": true, + //#else + "Ssl": false, + //#endif + "Token": "ha_token", }, "NetDaemon": { "ApplicationConfigurationFolder": "./apps"