code: def refresh_all_states(self):
          
          header = BASE_HEADERS.copy()
          header['Cookie'] = self.__cookie
  
          request = requests.get(
              BASE_URL + "refreshAllStates", headers=header, timeout=10)
  
          if request.status_code != 200:
              self.__logged_in = False
              self.login()
              self.refresh_all_states()
              return
docs: Update all states.