From 5529816d3c7828d1c853bcd09ea65ce92b09311c Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Sun, 22 Oct 2017 19:10:17 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B8=8C=EB=A1=9C=EB=93=9C=EC=BC=80=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EB=8F=84=EB=A9=94=EC=9D=B8=EC=9D=B4=20=EB=8B=AC?= =?UTF-8?q?=EB=9D=BC=20=EA=B7=B8=EB=83=A5=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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',