From 6184c0c72e897da52538733c819f294f08e8df77 Mon Sep 17 00:00:00 2001 From: Nathan Hyde Date: Thu, 24 Jun 2021 10:43:54 -0700 Subject: [PATCH] Add EP10(US) 1.0 1.0.2 fixture (#174) * Add EP10(US) 1.0 1.0.2 fixture * Add EP10 fixture to conftest PLUGS list. * Add EP10 to the list of supported plugs in README * Revert "Add EP10 to the list of supported plugs in README" This reverts commit e8bf6551c39e879a771944d5b18e3b2fd1f68675. --- kasa/tests/conftest.py | 2 +- kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json | 32 +++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100755 kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json diff --git a/kasa/tests/conftest.py b/kasa/tests/conftest.py index 456fe3ab..ba1179cd 100644 --- a/kasa/tests/conftest.py +++ b/kasa/tests/conftest.py @@ -30,7 +30,7 @@ COLOR_BULBS = {"LB130", "KL125", "KL130", *LIGHT_STRIPS} BULBS = {"KL60", "LB100", *VARIABLE_TEMP, *COLOR_BULBS, *LIGHT_STRIPS} -PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210"} +PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10"} STRIPS = {"HS107", "HS300", "KP303", "KP400"} DIMMERS = {"HS220"} diff --git a/kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json b/kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json new file mode 100755 index 00000000..e40543d6 --- /dev/null +++ b/kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json @@ -0,0 +1,32 @@ +{ + "system": { + "get_sysinfo": { + "active_mode": "none", + "alias": "167 lamp", + "dev_name": "Smart Wi-Fi Plug Mini", + "deviceId": "0000000000000000000000000000000000000000", + "err_code": 0, + "feature": "TIM", + "hwId": "00000000000000000000000000000000", + "hw_ver": "1.0", + "icon_hash": "", + "latitude_i": 0, + "led_off": 0, + "longitude_i": 0, + "mac": "00:00:00:00:00:00", + "mic_type": "IOT.SMARTPLUGSWITCH", + "model": "EP10(US)", + "next_action": { + "type": -1 + }, + "obd_src": "tplink", + "oemId": "00000000000000000000000000000000", + "on_time": 0, + "relay_state": 0, + "rssi": -64, + "status": "new", + "sw_ver": "1.0.2 Build 200915 Rel.085940", + "updating": 0 + } + } +}