diff --git a/tuya_iot/openapi.py b/tuya_iot/openapi.py index 10e6f23..72b0503 100644 --- a/tuya_iot/openapi.py +++ b/tuya_iot/openapi.py @@ -281,7 +281,7 @@ def __request( if result.get("code", -1) == TUYA_ERROR_CODE_TOKEN_INVALID: self.token_info = None - self.connect( + return self.connect( self.__username, self.__password, self.__country_code, self.__schema )