jimmyeao / TEAMS2HA

24 stars 1 forks source link

Teams2HA doesn't update Teams connection status #61

Closed FredericMa closed 4 months ago

FredericMa commented 4 months ago

Describe the bug The application doesn't update the Teams connection status. The sensors are updated correctly and I see the data appearing in the log so it is just the label that is not updating. It does set the correct state at startup but doesn't change it afterwards. I discovered it since at startup it showed "Disconnected" while Teams was started so Teams2HA must have started before Teams. At that moment I closed Teams2HA and started it again. Then it showed me the correct state. Afterwards I turned of Teams but the status kept on showing as "Connected".

To Reproduce Steps to reproduce the behavior:

  1. Both Teams2HA are running and Teams2HA shows Teams as "Connected".
  2. Shut down teams -> Teams2HA keeps on showing Teams as "Connected".
  3. Restart Teams2HA -> It shows Teams as "Disconnected".

Expected behavior The Teams connected status updates to the correct state when Teams is started or stopped.

Screenshots You can see that Teams2HA shows disconnected while Teams is running (bottom of screenshot). image

Desktop (please complete the following information):

Logs - (please complete the following information)

Thanks a lot for your great work!

FredericMa commented 4 months ago

What I noticed after some further testing:

jimmyeao commented 4 months ago

Thanks for the added info, I'll take a look this week