thingsboard-python-rest-client icon indicating copy to clipboard operation
thingsboard-python-rest-client copied to clipboard

[BUG] RestClientPE controller models broken when token refresh is called

Open LL928 opened this issue 1 year ago • 0 comments

RestClientPE controller models change from PE to CE version when refresh method is called. For example, calling get_user_device after refresh result in an attribute error:

AttributeError: 'DeviceControllerApi' object has no attribute 'get_user_devices_using_get'

RestClientPE is missing overloading for refresh method:

    def refresh(self):
        super(RestClientPE, self).refresh()
        self.__load_controllers()

LL928 avatar Mar 06 '24 17:03 LL928