From e4986aa46ae189250607d0d2624ed404985d87b7 Mon Sep 17 00:00:00 2001 From: Nathan Hyde Date: Thu, 17 Jun 2021 11:26:44 -0700 Subject: [PATCH 1/4] Add EP10(US) 1.0 1.0.2 fixture --- kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json 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 000000000..e40543d6b --- /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 + } + } +} From 89463f208a7a606f0ad0da1dcea3be54fde39b00 Mon Sep 17 00:00:00 2001 From: Nathan Hyde Date: Sun, 20 Jun 2021 16:59:27 -0700 Subject: [PATCH 2/4] Add EP10 fixture to conftest PLUGS list. --- kasa/tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasa/tests/conftest.py b/kasa/tests/conftest.py index 456fe3ab5..ba1179cd4 100644 --- a/kasa/tests/conftest.py +++ b/kasa/tests/conftest.py @@ -30,7 +30,7 @@ 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"} From e8bf6551c39e879a771944d5b18e3b2fd1f68675 Mon Sep 17 00:00:00 2001 From: Nathan Hyde Date: Mon, 21 Jun 2021 10:46:58 -0700 Subject: [PATCH 3/4] Add EP10 to the list of supported plugs in README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9cb1b3c68..52b284b48 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ or the `parse_pcap.py` script contained inside the `devtools` directory. * HS105 * HS107 * HS110 +* EP10 ### Power Strips From 64896d8e33c2ff9bc29e6d35caa4c31438ff767f Mon Sep 17 00:00:00 2001 From: Nathan Hyde Date: Tue, 22 Jun 2021 20:17:55 -0700 Subject: [PATCH 4/4] Revert "Add EP10 to the list of supported plugs in README" This reverts commit e8bf6551c39e879a771944d5b18e3b2fd1f68675. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 52b284b48..9cb1b3c68 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,6 @@ or the `parse_pcap.py` script contained inside the `devtools` directory. * HS105 * HS107 * HS110 -* EP10 ### Power Strips