andrewleech / ha_magiqtouch

Home Assistant (HACS) integration to control Seeley MagiQtouch heating and cooling units.
MIT License
24 stars 6 forks source link

Login error: (InvalidSignatureException) #6

Open andrewleech opened 2 years ago

andrewleech commented 2 years ago

I had a login fail that gave no error message.

Inspecting the logs showed this:

Logger: custom_components.magiqtouch.config_flow
Source: custom_components/magiqtouch/config_flow.py:32
Integration: magiqtouch
First occurred: 8:46:00 PM (2 occurrences)
Last logged: 8:50:05 PM

Could not connect: An error occurred (InvalidSignatureException) when calling the AttachPolicy operation: Signature not yet current: 20221117T094600Z is still later than 20221117T094108Z (20221117T093608Z + 5 min.) Traceback (most recent call last): File "/config/custom_components/magiqtouch/config_flow.py", line 28, in validate_input if not await hub.login(): File

Turns out my HA server had the wrong date, was ~10min ahead.