diff --git a/modules/HomematicIP.py b/modules/HomematicIP.py index 3c158f8..20184f9 100644 --- a/modules/HomematicIP.py +++ b/modules/HomematicIP.py @@ -34,6 +34,9 @@ def getdata(): global h if not h.get_current_state(): + # Re-init to prevent stale access tokens + h.init(config["accesspointid"]) + if not h.get_current_state(): if not h.get_current_state(): return