'Ask the ZigBee device what its output is set to.'

def update(self):

    try:
        pin_state = DEVICE.get_gpio_pin(self._config.pin, self._config.address)
    except ZIGBEE_TX_FAILURE:
        _LOGGER.warning('Transmission    failure    when    attempting    to    get    output    pin    status    from    ZigBee    device    at    address:    %s', hexlify(self._config.address))
        return
    except ZIGBEE_EXCEPTION as exc:
        _LOGGER.exception('Unable    to    get    output    pin    status    from    ZigBee    device:    %s', exc)
        return
    self._state = self._config.state2bool[pin_state]
