code: def update(self):
          
          self._controller.update(self._id, wake_if_asleep=False)
          data = self._controller.get_charging_params(self._id)
          if data:
              self.__battery_level = data['battery_level']
              self.__charging_state = data['charging_state']
docs: Update the battery state.