'Get the latest state and update the state.'

def update(self):

    self._port.refresh()
    if (self._target_state is not None):
        self._port.data['output'] = float(self._target_state)
        self._target_state = None
