def state ( self ) : ev = self . _query_waiters . request ( self . __do_query_state ) ev . wait ( 1.0 ) return self . _state
python query socket state
Returns the current LED state by querying the remote controller .
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