예제 #1
0
 def __init__(self, device_ip: str, device_id: int):
     device_id = convert_device_id_hex(device_id)
     self._lan_service = lan(device_ip, device_id)
     self._ip = device_ip
     self._id = device_id
     self._type = 0xac
     self._updating = False
     self._defer_update = False
예제 #2
0
 def __init__(self, device_ip: str, device_id: int, device_port: int):
     device_id = convert_device_id_hex(device_id)
     self._lan_service = lan(device_ip, device_id, device_port)
     self._ip = device_ip
     self._id = device_id
     self._port = device_port
     self._type = 0xac
     self._updating = False
     self._defer_update = False
     self._half_temp_step = False
     self._support = False
예제 #3
0
 def __init__(self, device_ip: str, device_id: int, device_port: int):
     # device_id = convert_device_id_hex(device_id)
     self._lan_service = lan(device_ip, device_id, device_port)
     self._ip = device_ip
     self._id = device_id
     self._port = device_port
     self._keep_last_known_online_state = False
     self._type = 0xac
     self._updating = False
     self._defer_update = False
     self._half_temp_step = False
     self._support = False
     self._online = True
     self._active = True
     self._protocol_version = 2
예제 #4
0
 def __init__(self, device_ip: str, device_id: str):
     self._lan = lan(device_ip, device_ip)
     self._devices = {}  # type: Dict[str, device]