We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca39781 commit 69522d3Copy full SHA for 69522d3
src/HomeAutio.Mqtt.Ecobee/Program.cs
@@ -144,7 +144,7 @@ private static async Task ValidateTokens()
144
registrationConfig.GetValue<string>("ecobeeAppKey"),
145
ReadTokenFileAsync,
146
WriteTokenFileAsync);
147
- if (!File.Exists(@"token.txt"))
+ if (!File.Exists(@"token.txt") || File.ReadAllText(@"token.txt") == string.Empty)
148
{
149
Console.WriteLine("Getting new tokens");
150
var pin = await registrationClient.GetPinAsync();
0 commit comments