def state(self):
    """Returns the current LED state by querying the remote controller."""
    ev = self._query_waiters.request(self.__do_query_state)
    ev.wait(1.0)
    return self._state
def state ( self ) : ev = self . _query_waiters . request ( self . __do_query_state ) ev . wait ( 1.0 ) return self . _state
Returns the current LED state by querying the remote controller.