From 8e6cfd003edf9656c1c2b09862b37d96dc8b98d2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 11 May 2022 09:02:17 -0500 Subject: [PATCH] Add fixtures for KP100 (#343) * Add fixtures for KP100 * readme --- README.md | 1 + kasa/tests/conftest.py | 1 + kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json | 31 ++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json diff --git a/README.md b/README.md index 9d62cb81..d47ba113 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,7 @@ or the `parse_pcap.py` script contained inside the `devtools` directory. * HS105 * HS107 * HS110 +* KP100 * KP105 * KP115 * KP401 diff --git a/kasa/tests/conftest.py b/kasa/tests/conftest.py index 93d37473..8b4e5bc9 100644 --- a/kasa/tests/conftest.py +++ b/kasa/tests/conftest.py @@ -48,6 +48,7 @@ PLUGS = { "HS200", "HS210", "EP10", + "KP100", "KP115", "KP105", "KP401", diff --git a/kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json b/kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json new file mode 100644 index 00000000..fb62654b --- /dev/null +++ b/kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json @@ -0,0 +1,31 @@ +{ + "system": { + "get_sysinfo": { + "active_mode": "none", + "alias": "Kasa", + "dev_name": "Smart Wi-Fi Plug Mini", + "deviceId": "0000000000000000000000000000000000000000", + "err_code": 0, + "feature": "TIM", + "hwId": "00000000000000000000000000000000", + "hw_ver": "3.0", + "icon_hash": "", + "latitude_i": 0, + "led_off": 0, + "longitude_i": 0, + "mac": "00:00:00:00:00:00", + "mic_type": "IOT.SMARTPLUGSWITCH", + "model": "KP100(US)", + "next_action": { + "type": -1 + }, + "oemId": "00000000000000000000000000000000", + "on_time": 523, + "relay_state": 1, + "rssi": -60, + "status": "new", + "sw_ver": "1.0.1 Build 200831 Rel.142128", + "updating": 0 + } + } +}