Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jimmyeao/TEAMS2HA
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyeao committed Jan 3, 2024
2 parents a90cf3c + 5199acb commit 226623e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion API/MqttClientWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static List<string> GetEntityNames(string deviceId)

return entityNames;
}
public async Task PublishAsync(string topic, string payload, bool retain = false)
public async Task PublishAsync(string topic, string payload, bool retain = true)
{
try
{
Expand Down
1 change: 1 addition & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ private async void ReestablishConnections()
if (!mqttClientWrapper.IsConnected)
{
await mqttClientWrapper.ConnectAsync();
SetupMqttSensors();
}
if (!_teamsClient.IsConnected)
{
Expand Down

0 comments on commit 226623e

Please sign in to comment.