Commit 5801c12
authored
Pull config out of RunnerService (#158)
* Context
* Post merge clean.
* Update client.
Add support for context.
Move things around a little.
* Fix name, also in an attempt to re-run tests on build server.
* Pull config out of runner service, use .net core built-in configuration.
Environment variables take preference over daemon_config.
* * Break apart HA settings from NetDaemon settings
* Remove HostBuilderExtensions
- No need to generate a sample config file. It now comes with one (appsettings.json)
- No need to add json or env variables as generic host add these automatically
Runner.cs
* Pulled HassIO config file to environment variables out and into its own method (readability)
- Comment out HASSCLIENT_MSGLOGLEVEL, couldn't see any usages
- Comment out HASS_RUN_PROJECT_FOLDER, couldn't see any usages
* Register HA and ND settings in IOC
RunnerService.cs
* Inject settings
* Extract generate entities code into its own method (readability)
* PR comments. Default config host value should be localhost.
* PR comments.
* PR comments.
* Move hosting code to Service.
* PR comments.
These are used by hass client.
* Update some docker variables.
* Allow changing of minimum log level by config or environment variables.
* Update project folder variable.1 parent 657ed80 commit 5801c12
File tree
18 files changed
+233
-330
lines changed- .devcontainer
- Docker/rootfs/etc/services.d/NetDaemon
- src
- DaemonRunner/DaemonRunner
- Service
- Configuration
- Extensions
- Service
- tests/NetDaemon.Daemon.Tests/DaemonRunner/Config
18 files changed
+233
-330
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 0 additions & 15 deletions
This file was deleted.
This file was deleted.
0 commit comments