'Update device state.'

def update(self):

    super().update()
    value = self.get_percentage('getposition')
    if (value is not None):
        self._current_pos = value
        if self._invert_position:
            self._current_pos = (100 - value)
        _LOGGER.debug('%s:    position    =    %d', self.name, value)
    if (self._supported_features & SUPPORT_SET_TILT_POSITION):
        value = self.get_percentage('getangle')
        if (value is not None):
            self._current_tilt = value
            if self._invert_angle:
                self._current_tilt = (100 - value)
            _LOGGER.debug('%s:    tilt    =    %d', self.name, value)
