diff --git a/custom_components/sberdevices/api.py b/custom_components/sberdevices/api.py index d30e3d0..45b1afb 100755 --- a/custom_components/sberdevices/api.py +++ b/custom_components/sberdevices/api.py @@ -112,6 +112,7 @@ async def update_token(self) -> None: token = await self._sber.fetch_home_token() if token is not None: self._client.headers.update({"X-AUTH-jwt": token}) + self._token_alive = True async def request( self, method: str, url: str, retry: bool = True, **kwargs