diff --git a/kasa/tests/conftest.py b/kasa/tests/conftest.py index 14229215..4f50f8da 100644 --- a/kasa/tests/conftest.py +++ b/kasa/tests/conftest.py @@ -40,7 +40,7 @@ BULBS = { } -PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115"} +PLUGS = {"HS100", "HS103", "HS105", "HS110", "HS200", "HS210", "EP10", "KP115", "KP105"} STRIPS = {"HS107", "HS300", "KP303", "KP400", "EP40"} DIMMERS = {"HS220"} diff --git a/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json b/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json index a6ec2b91..e52cb85c 100644 --- a/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json +++ b/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json @@ -3,28 +3,26 @@ "get_realtime": { "current_ma": 0, "err_code": 0, - "power_mw": 0, + "power_mw": 5200, "total_wh": 0, "voltage_mv": 0 } }, "smartlife.iot.smartbulb.lightingservice": { "get_light_state": { - "dft_on_state": { - "brightness": 69, - "color_temp": 2000, - "hue": 0, - "mode": "normal", - "saturation": 0 - }, + "brightness": 100, + "color_temp": 2000, "err_code": 0, - "on_off": 0 + "hue": 0, + "mode": "normal", + "on_off": 1, + "saturation": 0 } }, "system": { "get_sysinfo": { "active_mode": "none", - "alias": "Fil", + "alias": "Gold fil", "ctrl_protocols": { "name": "Linkie", "version": "1.0" @@ -42,14 +40,12 @@ "is_variable_color_temp": 0, "latitude_i": 0, "light_state": { - "dft_on_state": { - "brightness": 69, - "color_temp": 2000, - "hue": 0, - "mode": "normal", - "saturation": 0 - }, - "on_off": 0 + "brightness": 100, + "color_temp": 2000, + "hue": 0, + "mode": "normal", + "on_off": 1, + "saturation": 0 }, "longitude_i": 0, "mic_mac": "000000000000", @@ -86,7 +82,7 @@ "saturation": 0 } ], - "rssi": -55, + "rssi": -41, "status": "new", "sw_ver": "1.1.13 Build 210524 Rel.082619" } diff --git a/kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json b/kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json new file mode 100644 index 00000000..b4a12131 --- /dev/null +++ b/kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json @@ -0,0 +1,33 @@ +{ + "system": { + "get_sysinfo": { + "active_mode": "none", + "alias": "Uk plug", + "dev_name": "Smart Wi-Fi Plug", + "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": "KP105(UK)", + "next_action": { + "type": -1 + }, + "ntc_state": 0, + "obd_src": "tplink", + "oemId": "00000000000000000000000000000000", + "on_time": 0, + "relay_state": 0, + "rssi": -48, + "status": "new", + "sw_ver": "1.0.7 Build 210506 Rel.153510", + "updating": 0 + } + } +}