SecKatie / wyzeapy

35 stars 26 forks source link

update_manager - Fix: guard against empty que, Fix: typo, refactor: improve logging #61

Closed JoeSchubert closed 1 year ago

JoeSchubert commented 1 year ago

Issue https://github.com/JoshuaMulliken/ha-wyzeapi/issues/452 presented a log where the update_manager would update against an empty queue. While this does not address the main concern in issue 452 of the missing sensors, this empty queue bug needed to be addressed.

I have also noticed in other reports people have reported "nothing in the logs" because we did not include much (any) logging in this class, so I think it is time that we at least provided some amount of debug logging in this class to provide users with some feedback.

Code is untested, but there is no reason that I can see that it would cause issues.