def __init__(self, host, port, name): """Initialize the sensor.""" self._host = host self._port = port self._name = name self._state = None self._connection = None from rfk101py.rfk101py import rfk101py self._connection = rfk101py(self._host, self._port, self._callback)
def connect(self): """Connect to the reader.""" self._connection = rfk101py(self._host, self._port, self._callback)
def connect(self): """Connect to the reader.""" from rfk101py.rfk101py import rfk101py self._connection = rfk101py(self._host, self._port, self._callback)