From 74309c517c7e8678feeeda8d47ce9d550736edc1 Mon Sep 17 00:00:00 2001 From: Blueion <128919662+Blueion76@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:35:53 -0600 Subject: [PATCH] Update Program.cs --- FCAAddon/FCAClient/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FCAAddon/FCAClient/Program.cs b/FCAAddon/FCAClient/Program.cs index 059861b..6d3484f 100644 --- a/FCAAddon/FCAClient/Program.cs +++ b/FCAAddon/FCAClient/Program.cs @@ -2,8 +2,8 @@ using System.Globalization; using Cocona; using CoordinateSharp; -using FiatUconnect; -using FiatUconnect.HA; +using FCAUconnect; +using FCAUconnect.HA; using Flurl.Http; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; @@ -13,7 +13,7 @@ var builder = CoconaApp.CreateBuilder(); -builder.Configuration.AddEnvironmentVariables("FiatUconnect_"); +builder.Configuration.AddEnvironmentVariables("FCAUconnect_"); builder.Services.AddOptions() .Bind(builder.Configuration) @@ -48,7 +48,7 @@ await app.RunAsync(async (CoconaAppContext ctx) => FiatClient fiatClient = new FiatClient(appConfig.FiatUser, appConfig.FiatPw, appConfig.Brand, appConfig.Region); - var mqttClient = new SimpleMqttClient(appConfig.MqttServer, appConfig.MqttPort, appConfig.MqttUser, appConfig.MqttPw, "FiatUconnect"); + var mqttClient = new SimpleMqttClient(appConfig.MqttServer, appConfig.MqttPort, appConfig.MqttUser, appConfig.MqttPw, "FCAUconnect"); await mqttClient.Connect();