From 1c83bb67c17f11a4d786cca7e45700401650a109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20K=C3=BChnel?= Date: Sun, 17 Nov 2024 00:03:22 +0100 Subject: [PATCH] feat(Program): do not autoenable using data from TeslaMate --- TeslaSolarCharger/Server/Program.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/TeslaSolarCharger/Server/Program.cs b/TeslaSolarCharger/Server/Program.cs index 1ac661da0..2a3142bdd 100644 --- a/TeslaSolarCharger/Server/Program.cs +++ b/TeslaSolarCharger/Server/Program.cs @@ -118,13 +118,6 @@ async Task DoStartupStuff(WebApplication webApplication, ILogger logger var baseConfigurationService = webApplication.Services.GetRequiredService(); var teslaMateContextWrapper = webApplication.Services.GetRequiredService(); var teslaMateContext = teslaMateContextWrapper.GetTeslaMateContextIfAvailable(); - //This needs to be done before first base configuration update otherwise all TeslaMate values are removed - if (teslaMateContext != default) - { - baseConfiguration.UseTeslaMateIntegration = true; - baseConfiguration.UseTeslaMateAsDataSource = true; - } - await baseConfigurationService.UpdateBaseConfigurationAsync(baseConfiguration); if (teslaMateContext != default) { try