'Update the sensor.'

def update(self):

    self._update_devices()
    if (self.type == 'battery'):
        self._state = self._tc_object.battery
    elif (self.type == 'state'):
        self._state = STATES[self._tc_object.status]
    elif (self.type == 'capacity'):
        self._state = self._tc_object.capacity
