Skip to content

Commit

Permalink
fixed app_source
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Dec 20, 2020
1 parent cace02e commit a47b078
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class NetDaemonSettings
/// If Admin gui would be used
/// </summary>
public bool? Admin { get; set; } = false;

/// <summary>
/// Where the apps are found
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/Service/.config/hassio_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"log_level": "trace",
"app_source": "/config/netdaemon",
"generate_entities": true
}
2 changes: 1 addition & 1 deletion src/Service/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static async Task ReadHassioConfig()
_ = hassAddOnSettings?.AppSource ??
throw new NullReferenceException("AppSource cannot be null");

if (!hassAddOnSettings.AppSource.StartsWith("/") || hassAddOnSettings.AppSource[1] == ':')
if (hassAddOnSettings.AppSource.StartsWith("/") || hassAddOnSettings.AppSource[1] == ':')
{
// Hard codede path
Environment.SetEnvironmentVariable("NETDAEMON__APPSOURCE", hassAddOnSettings.AppSource);
Expand Down

0 comments on commit a47b078

Please sign in to comment.