Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueion76 authored Nov 16, 2024
1 parent 7529a61 commit 74309c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FCAAddon/FCAClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -13,7 +13,7 @@

var builder = CoconaApp.CreateBuilder();

builder.Configuration.AddEnvironmentVariables("FiatUconnect_");
builder.Configuration.AddEnvironmentVariables("FCAUconnect_");

builder.Services.AddOptions<AppConfig>()
.Bind(builder.Configuration)
Expand Down Expand Up @@ -48,7 +48,7 @@ await app.RunAsync(async (CoconaAppContext ctx) =>

FiatClient fiatClient = new FiatClient(appConfig.FiatUser, appConfig.FiatPw, appConfig.Brand, appConfig.Region);

Check failure on line 49 in FCAAddon/FCAClient/Program.cs

View workflow job for this annotation

GitHub Actions / build (armv7, linux-musl-arm)

'AppConfig' does not contain a definition for 'FiatUser' and no accessible extension method 'FiatUser' accepting a first argument of type 'AppConfig' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 49 in FCAAddon/FCAClient/Program.cs

View workflow job for this annotation

GitHub Actions / build (armv7, linux-musl-arm)

'AppConfig' does not contain a definition for 'FiatPw' and no accessible extension method 'FiatPw' accepting a first argument of type 'AppConfig' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 49 in FCAAddon/FCAClient/Program.cs

View workflow job for this annotation

GitHub Actions / build (amd64, linux-musl-x64)

'AppConfig' does not contain a definition for 'FiatUser' and no accessible extension method 'FiatUser' accepting a first argument of type 'AppConfig' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 49 in FCAAddon/FCAClient/Program.cs

View workflow job for this annotation

GitHub Actions / build (amd64, linux-musl-x64)

'AppConfig' does not contain a definition for 'FiatPw' and no accessible extension method 'FiatPw' accepting a first argument of type 'AppConfig' could be found (are you missing a using directive or an assembly reference?)

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();

Expand Down

0 comments on commit 74309c5

Please sign in to comment.