code: def update(self):
          
          self._controller.update(self._id, wake_if_asleep=False)
          data = self._controller.get_state_params(self._id)
          if data:
              self.__odometer = data['odometer']
          data = self._controller.get_gui_params(self._id)
          if data:
              if data['gui_distance_units'] == "mi/hr":
                  self.measurement = 'LENGTH_MILES'
              else:
                  self.measurement = 'LENGTH_KILOMETERS'
              self.__rated = (data['gui_range_display'] == "Rated")
docs: Update the odometer and the unit of measurement based on GUI.