guerrerotook / securitas-direct-new-api

This repository contains the new securitas direct API that can be integrated in Home Assistant
Apache License 2.0
76 stars 30 forks source link

"Invalid token: Expired" still on ... #168

Closed bigramonk closed 10 months ago

bigramonk commented 10 months ago

I installed the new 2.4.0.2 version and could not set the alarm anymore, getting a "Invalid token: Expired" error message. I changed the code of the __checkerrros function in apimanager.py as follows and it solved my issue: if (error_item["message"] == "Invalid session. Please, try again later." or error_item["message"] == "Invalid token: Expired"): I guess not all Securitas servers get updated at the same time...

guerrerotook commented 10 months ago

Related to #166 and a fix is on the way