def __init__(self, oauth_manager: AbstractViCareOAuthManager, accessor: ViCareDeviceAccessor, cacheDuration: int) -> None: ViCareService.__init__(self, oauth_manager, accessor) self.__cacheDuration = cacheDuration self.__cache = None self.__cacheTime = None self.__lock = threading.Lock()
def __init__(self, username, password, cacheDuration, token_file=None, circuit=0): ViCareService.__init__(self, username, password, token_file, circuit) self.cacheDuration = cacheDuration self.cache = None self.cacheTime = None self.lock = threading.Lock()