diff --git a/main.py b/main.py index 6bed5ba..9b8f2d5 100644 --- a/main.py +++ b/main.py @@ -36,7 +36,8 @@ if __name__ == '__main__': metric = InfluxDBClient('db', database='core', use_udp=True, udp_port=8089) air_addr=socket.gethostbyname("air") - dev = create_device(air_addr,AirPurifier) + #dev = create_device(air_addr,AirPurifier) + dev = AirPurifier(air_addr,'6e1e05b87d9f7cd10a3f8f43616896fa') tags = { 'source': 'mi_air_2', 'position': 'center_room',