From eb5b9f6b14045ca0eb653868f99884ae30275335 Mon Sep 17 00:00:00 2001 From: xZetsubou Date: Sat, 28 Oct 2023 03:45:03 +0300 Subject: [PATCH] Set `0` as default token expire time --- custom_components/localtuya/cloud_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/cloud_api.py b/custom_components/localtuya/cloud_api.py index 61ec014c2..dddd497dc 100644 --- a/custom_components/localtuya/cloud_api.py +++ b/custom_components/localtuya/cloud_api.py @@ -38,7 +38,7 @@ def __init__(self, hass, region_code, client_id, secret, user_id): self._secret = secret self._user_id = user_id self._access_token = "" - self._token_expire_time: int = -1 + self._token_expire_time: int = 0 self.device_list = {}