h4de5 / home-assistant-toshiba_ac

Toshiba AC integration into home-assistant.io
GNU General Public License v3.0
113 stars 17 forks source link

Request new sas_token if connection fails #189

Closed laurensk closed 2 weeks ago

laurensk commented 3 weeks ago

It seems that Toshiba has expired the internal authorization tokens used by this integration. Currently, there is a flaw in the design of this integration which means that the token will never get renewed, even if it has expired.

This PR adds the ability for the integration to automatically renew and save new tokens and fixes this problem for good.

Fix for https://github.com/h4de5/home-assistant-toshiba_ac/issues/188

felixmueller commented 2 weeks ago

@laurensk Thank you so much for the quick fix! I just copied your updated init.py file content to my instance in file editor and after restarting everything works fine again. Hopefully, your pull request will be merged soon.

h4de5 commented 2 weeks ago

thank you very much for your contribution!

felixmueller commented 2 weeks ago

@h4de5 Thanks for merging! Can you please publish a new release containing the fix so we can close issue #188? 🙏