python-kasa 0.9.0__tar.gz → 0.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_kasa-0.9.0 → python_kasa-0.10.0}/CHANGELOG.md +147 -17
- {python_kasa-0.9.0 → python_kasa-0.10.0}/PKG-INFO +5 -3
- {python_kasa-0.9.0 → python_kasa-0.10.0}/README.md +4 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/dump_devinfo.py +137 -52
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/generate_supported.py +7 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/helpers/smartrequests.py +21 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/parse_pcap_klap.py +1 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/strip.md +7 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/tutorial.py +2 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/common.py +31 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/device.py +3 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/discover.py +63 -20
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/feature.py +17 -5
- python_kasa-0.10.0/kasa/cli/hub.py +95 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/lazygroup.py +1 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/main.py +14 -5
- python_kasa-0.10.0/kasa/cli/vacuum.py +84 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/device.py +42 -6
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/device_factory.py +32 -12
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/device_type.py +2 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/deviceconfig.py +13 -4
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/discover.py +66 -49
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/exceptions.py +3 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/feature.py +29 -7
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/__init__.py +4 -0
- python_kasa-0.10.0/kasa/interfaces/alarm.py +75 -0
- python_kasa-0.10.0/kasa/interfaces/childsetup.py +70 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/light.py +44 -29
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotdimmer.py +1 -3
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotstrip.py +8 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/light.py +4 -40
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/lightpreset.py +1 -1
- python_kasa-0.10.0/kasa/iot/modules/motion.py +408 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/module.py +26 -5
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/protocols/iotprotocol.py +15 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/protocols/smartcamprotocol.py +16 -7
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/protocols/smartprotocol.py +43 -9
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/__init__.py +18 -0
- python_kasa-0.10.0/kasa/smart/modules/alarm.py +262 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/batterysensor.py +28 -14
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/childdevice.py +8 -0
- python_kasa-0.10.0/kasa/smart/modules/childlock.py +37 -0
- python_kasa-0.10.0/kasa/smart/modules/childsetup.py +112 -0
- python_kasa-0.10.0/kasa/smart/modules/clean.py +411 -0
- python_kasa-0.10.0/kasa/smart/modules/cleanrecords.py +205 -0
- python_kasa-0.10.0/kasa/smart/modules/consumables.py +170 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/devicemodule.py +4 -1
- python_kasa-0.10.0/kasa/smart/modules/dustbin.py +117 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/energy.py +6 -4
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/light.py +3 -34
- python_kasa-0.10.0/kasa/smart/modules/mop.py +90 -0
- python_kasa-0.10.0/kasa/smart/modules/powerprotection.py +124 -0
- python_kasa-0.10.0/kasa/smart/modules/speaker.py +67 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/smartchilddevice.py +19 -2
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/smartdevice.py +127 -40
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/smartmodule.py +16 -3
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/__init__.py +2 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/__init__.py +6 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/alarm.py +61 -18
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/babycrydetection.py +3 -1
- python_kasa-0.10.0/kasa/smartcam/modules/battery.py +113 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/camera.py +8 -5
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/childdevice.py +4 -1
- python_kasa-0.10.0/kasa/smartcam/modules/childsetup.py +112 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/device.py +8 -3
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/led.py +2 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/lensmask.py +2 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/motiondetection.py +3 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/persondetection.py +3 -1
- python_kasa-0.10.0/kasa/smartcam/modules/petdetection.py +49 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/tamperdetection.py +3 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/time.py +2 -0
- python_kasa-0.10.0/kasa/smartcam/smartcamchild.py +118 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/smartcamdevice.py +74 -56
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/smartcammodule.py +7 -16
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/aestransport.py +2 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/klaptransport.py +53 -7
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/linkietransport.py +2 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/sslaestransport.py +151 -15
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/ssltransport.py +3 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/xortransport.py +16 -5
- {python_kasa-0.9.0 → python_kasa-0.10.0}/pyproject.toml +3 -5
- python_kasa-0.10.0/tests/cli/test_hub.py +53 -0
- python_kasa-0.10.0/tests/cli/test_vacuum.py +114 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/conftest.py +13 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/device_fixtures.py +42 -4
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/discovery_fixtures.py +67 -12
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fakeprotocol_iot.py +2 -5
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fakeprotocol_smart.py +192 -61
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fakeprotocol_smartcam.py +132 -28
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtureinfo.py +13 -11
- python_kasa-0.10.0/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json +63 -0
- python_kasa-0.10.0/tests/fixtures/iot/KS230(US)_2.0_1.0.11.json +112 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/serialization/deviceconfig_camera-aes-https.json +2 -3
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/serialization/deviceconfig_plug-klap.json +2 -3
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/serialization/deviceconfig_plug-xor.json +2 -3
- python_kasa-0.10.0/tests/fixtures/smart/D100C(US)_1.0_1.1.3.json +258 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +18 -0
- python_kasa-0.10.0/tests/fixtures/smart/RV20 Max Plus(EU)_1.0_1.0.7.json +382 -0
- python_kasa-0.10.0/tests/fixtures/smart/RV30 Max(US)_1.0_1.2.0.json +888 -0
- python_kasa-0.10.0/tests/fixtures/smart/child/S210(EU)_1.0_1.9.0.json +168 -0
- python_kasa-0.10.0/tests/fixtures/smart/child/S220(EU)_1.0_1.9.0.json +158 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +1 -1
- python_kasa-0.10.0/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +537 -0
- python_kasa-0.10.0/tests/fixtures/smartcam/C210_2.0_1.3.11.json +870 -0
- python_kasa-0.10.0/tests/fixtures/smartcam/C220(EU)_1.0_1.2.2.json +1234 -0
- python_kasa-0.10.0/tests/fixtures/smartcam/C720(US)_1.0_1.2.3.json +1039 -0
- python_kasa-0.10.0/tests/fixtures/smartcam/D130(US)_1.0_1.1.9.json +986 -0
- python_kasa-0.10.0/tests/fixtures/smartcam/H200(EU)_1.0_1.3.6.json +556 -0
- python_kasa-0.10.0/tests/fixtures/smartcam/child/D230(EU)_1.20_1.1.19.json +525 -0
- python_kasa-0.10.0/tests/iot/modules/test_motion.py +114 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/test_iotdevice.py +2 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/protocols/test_iotprotocol.py +205 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/protocols/test_smartprotocol.py +41 -0
- python_kasa-0.10.0/tests/smart/modules/test_alarm.py +124 -0
- python_kasa-0.10.0/tests/smart/modules/test_childlock.py +44 -0
- python_kasa-0.10.0/tests/smart/modules/test_childsetup.py +68 -0
- python_kasa-0.10.0/tests/smart/modules/test_clean.py +241 -0
- python_kasa-0.10.0/tests/smart/modules/test_cleanrecords.py +59 -0
- python_kasa-0.10.0/tests/smart/modules/test_consumables.py +53 -0
- python_kasa-0.10.0/tests/smart/modules/test_dustbin.py +92 -0
- python_kasa-0.10.0/tests/smart/modules/test_mop.py +58 -0
- python_kasa-0.10.0/tests/smart/modules/test_powerprotection.py +98 -0
- python_kasa-0.10.0/tests/smart/modules/test_speaker.py +71 -0
- python_kasa-0.10.0/tests/smart/test_smartdevice.py +1012 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smartcam/modules/test_alarm.py +17 -5
- python_kasa-0.10.0/tests/smartcam/modules/test_battery.py +33 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smartcam/modules/test_camera.py +9 -3
- python_kasa-0.10.0/tests/smartcam/modules/test_childsetup.py +85 -0
- python_kasa-0.10.0/tests/smartcam/modules/test_petdetection.py +45 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smartcam/test_smartcamdevice.py +4 -4
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_bulb.py +68 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_cli.py +65 -15
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_device.py +21 -6
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_device_factory.py +14 -7
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_devtools.py +59 -5
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_discovery.py +31 -14
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_feature.py +16 -4
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_readme_examples.py +23 -0
- python_kasa-0.10.0/tests/transports/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/transports/test_aestransport.py +1 -1
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/transports/test_sslaestransport.py +217 -9
- python_kasa-0.9.0/kasa/iot/modules/motion.py +0 -102
- python_kasa-0.9.0/kasa/smart/modules/alarm.py +0 -145
- python_kasa-0.9.0/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -537
- python_kasa-0.9.0/tests/iot/modules/test_motion.py +0 -58
- python_kasa-0.9.0/tests/smart/test_smartdevice.py +0 -548
- {python_kasa-0.9.0 → python_kasa-0.10.0}/.gitignore +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/LICENSE +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/README.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/bench/benchmark.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/bench/utils/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/bench/utils/data.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/bench/utils/original.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/create_module_fixtures.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/helpers/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/helpers/smartcamrequests.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/parse_pcap.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/perftest.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/devtools/update_fixtures.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/Makefile +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/make.bat +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/SUPPORTED.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/_static/copybutton.js +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/cli.rst +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/codeinfo.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/conf.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/contribute.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/deprecated.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/featureattributes.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/connect.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/device.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/discover.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/energy.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/feature.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/light.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides/module.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/guides.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/index.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/library.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/reference.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/smartbulb.rst +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/smartdevice.rst +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/smartdimmer.rst +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/smartlightstrip.rst +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/smartplug.rst +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/smartstrip.rst +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/topics.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/docs/source/tutorial.md +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cachedzoneinfo.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/__main__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/light.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/schedule.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/time.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/usage.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/cli/wifi.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/credentials.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/emeterstatus.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/httpclient.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/energy.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/fan.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/led.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/lighteffect.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/lightpreset.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/thermostat.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/interfaces/time.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/effects.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotbulb.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotcamera.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotdevice.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotlightstrip.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotmodule.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iotplug.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/iottimezone.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/ambientlight.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/antitheft.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/cloud.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/countdown.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/emeter.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/led.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/lighteffect.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/rulemodule.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/schedule.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/time.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/iot/modules/usage.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/json.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/modulemapping.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/modulemapping.pyi +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/protocols/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/protocols/protocol.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/py.typed +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/effects.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/autooff.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/brightness.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/childprotection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/cloud.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/color.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/colortemperature.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/contactsensor.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/fan.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/firmware.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/frostprotection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/homekit.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/humiditysensor.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/led.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/lighteffect.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/lightpreset.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/lightstripeffect.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/lighttransition.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/matter.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/motionsensor.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/overheatprotection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/reportmode.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/temperaturecontrol.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/temperaturesensor.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/thermostat.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/time.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/triggerlogs.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smart/modules/waterleaksensor.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/homekit.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/matter.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/smartcam/modules/pantilt.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/kasa/transports/basetransport.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/__init__.py +0 -0
- {python_kasa-0.9.0/tests/iot → python_kasa-0.10.0/tests/cli}/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/EP10(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/EP40(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/ES20M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(UK)_1.0_1.2.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(UK)_4.1_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(US)_1.0_1.2.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(US)_2.0_1.5.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS103(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS103(US)_2.1_1.1.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS103(US)_2.1_1.1.4.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS105(US)_1.0_1.5.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS107(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS110(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS110(EU)_4.0_1.0.4.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS110(US)_1.0_1.2.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_2.0_1.5.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_3.0_1.1.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_5.0_1.0.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_5.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS210(US)_1.0_1.5.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS210(US)_2.0_1.1.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS220(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS220(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_2.0_1.0.12.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL120(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL120(US)_1.0_1.8.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL125(US)_1.20_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL125(US)_2.0_1.0.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL125(US)_4.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL130(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL135(US)_1.0_1.0.15.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL135(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL420L5(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(UN)_2.0_1.0.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL50(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL60(UN)_1.0_1.1.4.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KL60(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP100(US)_3.0_1.0.1.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP105(UK)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP115(EU)_1.0_1.0.16.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP115(US)_1.0_1.0.17.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP115(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP125(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP200(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP303(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP303(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP303(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_2.0_1.0.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_3.0_1.0.4.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP401(US)_1.0_1.0.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP405(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KP405(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS200(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.12.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS220(US)_1.0_1.0.13.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS220M(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/KS230(US)_1.0_1.0.14.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iot/LB110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/iotcam/EC60(US)_4.0_2.3.22.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/EP40M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/HS200(US)_5.26_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KH100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KH100(EU)_1.0_1.5.12.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KP125M(US)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L630(EU)_1.0_1.1.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P100(US)_1.0.0_1.1.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P100(US)_1.0.0_1.3.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P100(US)_1.0.0_1.4.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P110M(AU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P110M(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P115(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P135(US)_1.0_1.2.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P210M(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P304M(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/P306(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200B(US)_1.0_1.12.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200D(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200D(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T110(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T110(US)_1.0_1.9.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T310(US)_1.0_1.5.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smart/child/T315(US)_1.0_1.8.0.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/C100_4.0_1.3.14.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.3.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/C225(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/C325WB(EU)_1.0_1.1.17.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/C520WS(US)_1.0_1.2.8.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/H200(EU)_1.0_1.3.2.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/H200(US)_1.0_1.3.6.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/TC65_1.0_1.3.9.json +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/fixtures/smartcam/TC70_3.0_1.3.11.json +0 -0
- {python_kasa-0.9.0/tests/iot/modules → python_kasa-0.10.0/tests/iot}/__init__.py +0 -0
- {python_kasa-0.9.0/tests/protocols → python_kasa-0.10.0/tests/iot/modules}/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/modules/test_ambientlight.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/modules/test_cloud.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/modules/test_emeter.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/modules/test_schedule.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/modules/test_usage.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/test_iotbulb.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/test_iotdimmer.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/test_iotlightstrip.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/iot/test_wallswitch.py +0 -0
- {python_kasa-0.9.0/tests/smart → python_kasa-0.10.0/tests/protocols}/__init__.py +0 -0
- {python_kasa-0.9.0/tests/smart/features → python_kasa-0.10.0/tests/smart}/__init__.py +0 -0
- {python_kasa-0.9.0/tests/smart/modules → python_kasa-0.10.0/tests/smart/features}/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/features/test_brightness.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/features/test_colortemp.py +0 -0
- {python_kasa-0.9.0/tests/smartcam → python_kasa-0.10.0/tests/smart/modules}/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_autooff.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_childprotection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_contact.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_energy.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_fan.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_firmware.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_homekit.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_humidity.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_light_effect.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_light_strip_effect.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_lighttransition.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_matter.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_motionsensor.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_temperature.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_temperaturecontrol.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_triggerlogs.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smart/modules/test_waterleak.py +0 -0
- {python_kasa-0.9.0/tests/smartcam/modules → python_kasa-0.10.0/tests/smartcam}/__init__.py +0 -0
- {python_kasa-0.9.0/tests/transports → python_kasa-0.10.0/tests/smartcam/modules}/__init__.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smartcam/modules/test_babycrydetection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smartcam/modules/test_motiondetection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smartcam/modules/test_persondetection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/smartcam/modules/test_tamperdetection.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_childdevice.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_common_modules.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_device_type.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_deviceconfig.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_httpclient.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_plug.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/test_strip.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/transports/test_klaptransport.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/transports/test_linkietransport.py +0 -0
- {python_kasa-0.9.0 → python_kasa-0.10.0}/tests/transports/test_ssltransport.py +0 -0
|
@@ -1,5 +1,135 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.0](https://github.com/python-kasa/python-kasa/tree/0.10.0) (2025-01-26)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.9.1...0.10.0)
|
|
6
|
+
|
|
7
|
+
**Release summary:**
|
|
8
|
+
|
|
9
|
+
This release brings support for many new devices, including completely new device types:
|
|
10
|
+
|
|
11
|
+
- Support for Tapo robot vacuums. Special thanks to @steveredden, @MAXIGAMESSUPPER, and veep60 for helping to get this implemented!
|
|
12
|
+
- Support for hub attached cameras and doorbells (H200)
|
|
13
|
+
- Improved support for hubs (including pairing & better chime controls)
|
|
14
|
+
- Support for many new camera and doorbell device models, including C220, C720, D100C, D130, and D230
|
|
15
|
+
|
|
16
|
+
Many thanks to testers and new contributors - @steveredden, @DawidPietrykowski, @Obbay2, @andrewome, @ryenitcher and @etmmvdp!
|
|
17
|
+
|
|
18
|
+
**Breaking changes:**
|
|
19
|
+
|
|
20
|
+
- `uses_http` is now a readonly property of device config. Consumers that relied on `uses_http` to be persisted with `DeviceConfig.to_dict()` will need to store the value separately.
|
|
21
|
+
- `is_color`, `is_dimmable`, `is_variable_color_temp`, `valid_temperate_range`, and `has_effects` attributes from the `Light` module are deprecated, consumers should use `has_feature("hsv")`, `has_feature("brightness")`, `has_feature("color_temp")`, `get_feature("color_temp").range`, and `Module.LightEffect in dev.modules` respectively. Calling the deprecated attributes will emit a `DeprecationWarning` and type checkers will fail them.
|
|
22
|
+
- `alarm_volume` on the `smart.Alarm` module is changed from `str` to `int`
|
|
23
|
+
|
|
24
|
+
**Breaking changes:**
|
|
25
|
+
|
|
26
|
+
- Make uses\_http a readonly property of device config [\#1449](https://github.com/python-kasa/python-kasa/pull/1449) (@sdb9696)
|
|
27
|
+
- Allow passing alarm parameter overrides [\#1340](https://github.com/python-kasa/python-kasa/pull/1340) (@rytilahti)
|
|
28
|
+
- Deprecate legacy light module is\_capability checks [\#1297](https://github.com/python-kasa/python-kasa/pull/1297) (@sdb9696)
|
|
29
|
+
|
|
30
|
+
**Implemented enhancements:**
|
|
31
|
+
|
|
32
|
+
- Expose more battery sensors for D230 [\#1451](https://github.com/python-kasa/python-kasa/issues/1451)
|
|
33
|
+
- dumping HTTP POST Body for Tapo Vacuum \(RV30 Plus\) [\#937](https://github.com/python-kasa/python-kasa/issues/937)
|
|
34
|
+
- Add common alarm interface [\#1479](https://github.com/python-kasa/python-kasa/pull/1479) (@sdb9696)
|
|
35
|
+
- Add common childsetup interface [\#1470](https://github.com/python-kasa/python-kasa/pull/1470) (@sdb9696)
|
|
36
|
+
- Add childsetup module to smartcam hubs [\#1469](https://github.com/python-kasa/python-kasa/pull/1469) (@sdb9696)
|
|
37
|
+
- Add smartcam pet detection toggle module [\#1465](https://github.com/python-kasa/python-kasa/pull/1465) (@DawidPietrykowski)
|
|
38
|
+
- Only log one warning per unknown clean error code and status [\#1462](https://github.com/python-kasa/python-kasa/pull/1462) (@rytilahti)
|
|
39
|
+
- Add childlock module for vacuums [\#1461](https://github.com/python-kasa/python-kasa/pull/1461) (@rytilahti)
|
|
40
|
+
- Add ultra mode \(fanspeed = 5\) for vacuums [\#1459](https://github.com/python-kasa/python-kasa/pull/1459) (@rytilahti)
|
|
41
|
+
- Add setting to change carpet clean mode [\#1458](https://github.com/python-kasa/python-kasa/pull/1458) (@rytilahti)
|
|
42
|
+
- Add setting to change clean count [\#1457](https://github.com/python-kasa/python-kasa/pull/1457) (@rytilahti)
|
|
43
|
+
- Add mop module [\#1456](https://github.com/python-kasa/python-kasa/pull/1456) (@rytilahti)
|
|
44
|
+
- Enable dynamic hub child creation and deletion on update [\#1454](https://github.com/python-kasa/python-kasa/pull/1454) (@sdb9696)
|
|
45
|
+
- Expose current cleaning information [\#1453](https://github.com/python-kasa/python-kasa/pull/1453) (@rytilahti)
|
|
46
|
+
- Add battery module to smartcam devices [\#1452](https://github.com/python-kasa/python-kasa/pull/1452) (@sdb9696)
|
|
47
|
+
- Allow update of camera modules after setting values [\#1450](https://github.com/python-kasa/python-kasa/pull/1450) (@sdb9696)
|
|
48
|
+
- Update hub children on first update and delay subsequent updates [\#1438](https://github.com/python-kasa/python-kasa/pull/1438) (@sdb9696)
|
|
49
|
+
- Add support for doorbells and chimes [\#1435](https://github.com/python-kasa/python-kasa/pull/1435) (@steveredden)
|
|
50
|
+
- Implement vacuum dustbin module \(dust\_bucket\) [\#1423](https://github.com/python-kasa/python-kasa/pull/1423) (@rytilahti)
|
|
51
|
+
- Allow https for klaptransport [\#1415](https://github.com/python-kasa/python-kasa/pull/1415) (@rytilahti)
|
|
52
|
+
- Add smartcam child device support for smartcam hubs [\#1413](https://github.com/python-kasa/python-kasa/pull/1413) (@sdb9696)
|
|
53
|
+
- Add powerprotection module [\#1337](https://github.com/python-kasa/python-kasa/pull/1337) (@rytilahti)
|
|
54
|
+
- Add vacuum speaker controls [\#1332](https://github.com/python-kasa/python-kasa/pull/1332) (@rytilahti)
|
|
55
|
+
- Add consumables module for vacuums [\#1327](https://github.com/python-kasa/python-kasa/pull/1327) (@rytilahti)
|
|
56
|
+
- Add ADC Value to PIR Enabled Switches [\#1263](https://github.com/python-kasa/python-kasa/pull/1263) (@ryenitcher)
|
|
57
|
+
- Add support for cleaning records [\#945](https://github.com/python-kasa/python-kasa/pull/945) (@rytilahti)
|
|
58
|
+
- Initial support for vacuums \(clean module\) [\#944](https://github.com/python-kasa/python-kasa/pull/944) (@rytilahti)
|
|
59
|
+
- Add support for pairing devices with hubs [\#859](https://github.com/python-kasa/python-kasa/pull/859) (@rytilahti)
|
|
60
|
+
|
|
61
|
+
**Fixed bugs:**
|
|
62
|
+
|
|
63
|
+
- TP-Link HS300 Wi-Fi Power-Strip - "Parent On/Off" not functioning. [\#637](https://github.com/python-kasa/python-kasa/issues/637)
|
|
64
|
+
- Convert carpet\_clean\_mode to carpet\_boost switch [\#1486](https://github.com/python-kasa/python-kasa/pull/1486) (@rytilahti)
|
|
65
|
+
- Change category for empty dustbin feature from Primary to Config [\#1485](https://github.com/python-kasa/python-kasa/pull/1485) (@rytilahti)
|
|
66
|
+
- Report 0 for instead of None for zero current and voltage [\#1483](https://github.com/python-kasa/python-kasa/pull/1483) (@ryenitcher)
|
|
67
|
+
- Disable iot camera creation until more complete [\#1480](https://github.com/python-kasa/python-kasa/pull/1480) (@sdb9696)
|
|
68
|
+
- ssltransport: use debug logger for sending requests [\#1443](https://github.com/python-kasa/python-kasa/pull/1443) (@rytilahti)
|
|
69
|
+
- Fix discover cli command with host [\#1437](https://github.com/python-kasa/python-kasa/pull/1437) (@sdb9696)
|
|
70
|
+
- Fallback to is\_low for batterysensor's battery\_low [\#1420](https://github.com/python-kasa/python-kasa/pull/1420) (@rytilahti)
|
|
71
|
+
- Fix iot strip turn on and off from parent [\#639](https://github.com/python-kasa/python-kasa/pull/639) (@Obbay2)
|
|
72
|
+
|
|
73
|
+
**Added support for devices:**
|
|
74
|
+
|
|
75
|
+
- Add D130\(US\) 1.0 1.1.9 fixture [\#1476](https://github.com/python-kasa/python-kasa/pull/1476) (@sdb9696)
|
|
76
|
+
- Add D100C\(US\) 1.0 1.1.3 fixture [\#1475](https://github.com/python-kasa/python-kasa/pull/1475) (@sdb9696)
|
|
77
|
+
- Add C220\(EU\) 1.0 1.2.2 camera fixture [\#1466](https://github.com/python-kasa/python-kasa/pull/1466) (@DawidPietrykowski)
|
|
78
|
+
- Add D230\(EU\) 1.20 1.1.19 fixture [\#1448](https://github.com/python-kasa/python-kasa/pull/1448) (@sdb9696)
|
|
79
|
+
- Add fixture for C720 camera [\#1433](https://github.com/python-kasa/python-kasa/pull/1433) (@steveredden)
|
|
80
|
+
|
|
81
|
+
**Project maintenance:**
|
|
82
|
+
|
|
83
|
+
- Update ruff to 0.9 [\#1482](https://github.com/python-kasa/python-kasa/pull/1482) (@sdb9696)
|
|
84
|
+
- Cancel in progress CI workflows after new pushes [\#1481](https://github.com/python-kasa/python-kasa/pull/1481) (@sdb9696)
|
|
85
|
+
- Update test framework to support smartcam device discovery. [\#1477](https://github.com/python-kasa/python-kasa/pull/1477) (@sdb9696)
|
|
86
|
+
- Add error code 7 for clean module [\#1474](https://github.com/python-kasa/python-kasa/pull/1474) (@rytilahti)
|
|
87
|
+
- Enable CI workflow on PRs to feat/ fix/ and janitor/ [\#1471](https://github.com/python-kasa/python-kasa/pull/1471) (@sdb9696)
|
|
88
|
+
- Add commit-hook to prettify JSON files [\#1455](https://github.com/python-kasa/python-kasa/pull/1455) (@rytilahti)
|
|
89
|
+
- Add required sphinx.configuration [\#1446](https://github.com/python-kasa/python-kasa/pull/1446) (@rytilahti)
|
|
90
|
+
- Add more redactors for smartcams [\#1439](https://github.com/python-kasa/python-kasa/pull/1439) (@sdb9696)
|
|
91
|
+
- Add KS230\(US\) 2.0 1.0.11 IOT Fixture [\#1430](https://github.com/python-kasa/python-kasa/pull/1430) (@ZeliardM)
|
|
92
|
+
- Add tests for dump\_devinfo parent/child smartcam fixture generation [\#1428](https://github.com/python-kasa/python-kasa/pull/1428) (@sdb9696)
|
|
93
|
+
- Raise errors on single smartcam child requests [\#1427](https://github.com/python-kasa/python-kasa/pull/1427) (@sdb9696)
|
|
94
|
+
|
|
95
|
+
## [0.9.1](https://github.com/python-kasa/python-kasa/tree/0.9.1) (2025-01-06)
|
|
96
|
+
|
|
97
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.9.0...0.9.1)
|
|
98
|
+
|
|
99
|
+
**Release summary:**
|
|
100
|
+
|
|
101
|
+
- Support for hub-attached wall switches S210 and S220
|
|
102
|
+
- Support for older firmware on Tapo cameras
|
|
103
|
+
- Bugfixes and improvements
|
|
104
|
+
|
|
105
|
+
**Implemented enhancements:**
|
|
106
|
+
|
|
107
|
+
- Add support for Tapo hub-attached switch devices [\#1421](https://github.com/python-kasa/python-kasa/pull/1421) (@sdb9696)
|
|
108
|
+
- Use repr\(\) for enum values in Feature.\_\_repr\_\_ [\#1414](https://github.com/python-kasa/python-kasa/pull/1414) (@rytilahti)
|
|
109
|
+
- Update SslAesTransport for older firmware versions [\#1362](https://github.com/python-kasa/python-kasa/pull/1362) (@sdb9696)
|
|
110
|
+
|
|
111
|
+
**Fixed bugs:**
|
|
112
|
+
|
|
113
|
+
- T310 not detected with H200 Hub [\#1409](https://github.com/python-kasa/python-kasa/issues/1409)
|
|
114
|
+
- Fix incorrect obd src echo [\#1412](https://github.com/python-kasa/python-kasa/pull/1412) (@rytilahti)
|
|
115
|
+
- Backoff after xor timeout and improve error reporting [\#1424](https://github.com/python-kasa/python-kasa/pull/1424) (@bdraco)
|
|
116
|
+
- Handle smartcam partial list responses [\#1411](https://github.com/python-kasa/python-kasa/pull/1411) (@sdb9696)
|
|
117
|
+
|
|
118
|
+
**Added support for devices:**
|
|
119
|
+
|
|
120
|
+
- Add S220 fixture [\#1419](https://github.com/python-kasa/python-kasa/pull/1419) (@rytilahti)
|
|
121
|
+
- Add S210 fixture [\#1418](https://github.com/python-kasa/python-kasa/pull/1418) (@rytilahti)
|
|
122
|
+
|
|
123
|
+
**Documentation updates:**
|
|
124
|
+
|
|
125
|
+
- Improve exception messages on credential mismatches [\#1417](https://github.com/python-kasa/python-kasa/pull/1417) (@rytilahti)
|
|
126
|
+
|
|
127
|
+
**Project maintenance:**
|
|
128
|
+
|
|
129
|
+
- Add HS210\(US\) 3.0 1.0.10 IOT Fixture [\#1405](https://github.com/python-kasa/python-kasa/pull/1405) (@ZeliardM)
|
|
130
|
+
- Add C210 2.0 1.3.11 fixture [\#1406](https://github.com/python-kasa/python-kasa/pull/1406) (@sdb9696)
|
|
131
|
+
- Change smartcam detection features to category config [\#1402](https://github.com/python-kasa/python-kasa/pull/1402) (@sdb9696)
|
|
132
|
+
|
|
3
133
|
## [0.9.0](https://github.com/python-kasa/python-kasa/tree/0.9.0) (2024-12-21)
|
|
4
134
|
|
|
5
135
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.8.1...0.9.0)
|
|
@@ -21,23 +151,23 @@
|
|
|
21
151
|
|
|
22
152
|
**Implemented enhancements:**
|
|
23
153
|
|
|
24
|
-
- Add rssi and signal\_level to smartcam [\#1392](https://github.com/python-kasa/python-kasa/pull/1392) (@sdb9696)
|
|
25
|
-
- Add smartcam detection modules [\#1389](https://github.com/python-kasa/python-kasa/pull/1389) (@sdb9696)
|
|
26
154
|
- Add bare-bones matter modules to smart and smartcam devices [\#1371](https://github.com/python-kasa/python-kasa/pull/1371) (@sdb9696)
|
|
27
155
|
- Add bare bones homekit modules smart and smartcam devices [\#1370](https://github.com/python-kasa/python-kasa/pull/1370) (@sdb9696)
|
|
28
|
-
- Return raw discovery result in cli discover raw [\#1342](https://github.com/python-kasa/python-kasa/pull/1342) (@sdb9696)
|
|
29
156
|
- cli: print model, https, and lv for discover list [\#1339](https://github.com/python-kasa/python-kasa/pull/1339) (@rytilahti)
|
|
30
|
-
- Improve overheat reporting [\#1335](https://github.com/python-kasa/python-kasa/pull/1335) (@rytilahti)
|
|
31
|
-
- Provide alternative camera urls [\#1316](https://github.com/python-kasa/python-kasa/pull/1316) (@sdb9696)
|
|
32
157
|
- Add LinkieTransportV2 and basic IOT.IPCAMERA support [\#1270](https://github.com/python-kasa/python-kasa/pull/1270) (@Puxtril)
|
|
33
158
|
- Add ssltransport for robovacs [\#943](https://github.com/python-kasa/python-kasa/pull/943) (@rytilahti)
|
|
159
|
+
- Add rssi and signal\_level to smartcam [\#1392](https://github.com/python-kasa/python-kasa/pull/1392) (@sdb9696)
|
|
160
|
+
- Add smartcam detection modules [\#1389](https://github.com/python-kasa/python-kasa/pull/1389) (@sdb9696)
|
|
161
|
+
- Return raw discovery result in cli discover raw [\#1342](https://github.com/python-kasa/python-kasa/pull/1342) (@sdb9696)
|
|
162
|
+
- Improve overheat reporting [\#1335](https://github.com/python-kasa/python-kasa/pull/1335) (@rytilahti)
|
|
163
|
+
- Provide alternative camera urls [\#1316](https://github.com/python-kasa/python-kasa/pull/1316) (@sdb9696)
|
|
34
164
|
|
|
35
165
|
**Fixed bugs:**
|
|
36
166
|
|
|
37
167
|
- Tapo H200 Hub does not work with python-kasa [\#1149](https://github.com/python-kasa/python-kasa/issues/1149)
|
|
38
|
-
- Treat smartcam 500 errors after handshake as retryable [\#1395](https://github.com/python-kasa/python-kasa/pull/1395) (@sdb9696)
|
|
39
168
|
- Fix lens mask required component and state [\#1386](https://github.com/python-kasa/python-kasa/pull/1386) (@sdb9696)
|
|
40
169
|
- Add LensMask module to smartcam [\#1385](https://github.com/python-kasa/python-kasa/pull/1385) (@sdb9696)
|
|
170
|
+
- Treat smartcam 500 errors after handshake as retryable [\#1395](https://github.com/python-kasa/python-kasa/pull/1395) (@sdb9696)
|
|
41
171
|
- Do not error when accessing smart device\_type before update [\#1319](https://github.com/python-kasa/python-kasa/pull/1319) (@sdb9696)
|
|
42
172
|
- Fallback to other module data on get\_energy\_usage errors [\#1245](https://github.com/python-kasa/python-kasa/pull/1245) (@rytilahti)
|
|
43
173
|
|
|
@@ -47,41 +177,41 @@
|
|
|
47
177
|
- Add C225\(US\) 2.0 1.0.11 fixture [\#1398](https://github.com/python-kasa/python-kasa/pull/1398) (@sdb9696)
|
|
48
178
|
- Add P306\(US\) 1.0 1.1.2 fixture [\#1396](https://github.com/python-kasa/python-kasa/pull/1396) (@nakanaela)
|
|
49
179
|
- Add TC70 3.0 1.3.11 fixture [\#1390](https://github.com/python-kasa/python-kasa/pull/1390) (@sdb9696)
|
|
50
|
-
- Add C325WB\(EU\) 1.0 1.1.17 Fixture [\#1379](https://github.com/python-kasa/python-kasa/pull/1379) (@sdb9696)
|
|
51
|
-
- Add C100 4.0 1.3.14 Fixture [\#1378](https://github.com/python-kasa/python-kasa/pull/1378) (@sdb9696)
|
|
52
180
|
- Add KS200 \(US\) IOT Fixture and P115 \(US\) Smart Fixture [\#1355](https://github.com/python-kasa/python-kasa/pull/1355) (@ZeliardM)
|
|
53
181
|
- Add C520WS camera fixture [\#1352](https://github.com/python-kasa/python-kasa/pull/1352) (@Happy-Cadaver)
|
|
182
|
+
- Add C325WB\(EU\) 1.0 1.1.17 Fixture [\#1379](https://github.com/python-kasa/python-kasa/pull/1379) (@sdb9696)
|
|
183
|
+
- Add C100 4.0 1.3.14 Fixture [\#1378](https://github.com/python-kasa/python-kasa/pull/1378) (@sdb9696)
|
|
54
184
|
|
|
55
185
|
**Documentation updates:**
|
|
56
186
|
|
|
57
187
|
- Update docs for Tapo Lab Third-Party compatibility [\#1380](https://github.com/python-kasa/python-kasa/pull/1380) (@sdb9696)
|
|
58
188
|
- Add homebridge-kasa-python link to README [\#1367](https://github.com/python-kasa/python-kasa/pull/1367) (@rytilahti)
|
|
59
|
-
- Update docs for new FeatureAttribute behaviour [\#1365](https://github.com/python-kasa/python-kasa/pull/1365) (@sdb9696)
|
|
60
189
|
- Add link to related homeassistant-tapo-control [\#1333](https://github.com/python-kasa/python-kasa/pull/1333) (@rytilahti)
|
|
190
|
+
- Update docs for new FeatureAttribute behaviour [\#1365](https://github.com/python-kasa/python-kasa/pull/1365) (@sdb9696)
|
|
61
191
|
|
|
62
192
|
**Project maintenance:**
|
|
63
193
|
|
|
64
194
|
- Add P135 1.0 1.2.0 fixture [\#1397](https://github.com/python-kasa/python-kasa/pull/1397) (@sdb9696)
|
|
65
|
-
- Handle smartcam device blocked response [\#1393](https://github.com/python-kasa/python-kasa/pull/1393) (@sdb9696)
|
|
66
|
-
- Handle KeyboardInterrupts in the cli better [\#1391](https://github.com/python-kasa/python-kasa/pull/1391) (@sdb9696)
|
|
67
195
|
- Update C520WS fixture with new methods [\#1384](https://github.com/python-kasa/python-kasa/pull/1384) (@sdb9696)
|
|
68
196
|
- Miscellaneous minor fixes to dump\_devinfo [\#1382](https://github.com/python-kasa/python-kasa/pull/1382) (@sdb9696)
|
|
69
197
|
- Add timeout parameter to dump\_devinfo [\#1381](https://github.com/python-kasa/python-kasa/pull/1381) (@sdb9696)
|
|
70
|
-
- Simplify get\_protocol to prevent clashes with smartcam and robovac [\#1377](https://github.com/python-kasa/python-kasa/pull/1377) (@sdb9696)
|
|
71
|
-
- Add smartcam modules to package inits [\#1376](https://github.com/python-kasa/python-kasa/pull/1376) (@sdb9696)
|
|
72
|
-
- Enable saving of fixture files without git clone [\#1375](https://github.com/python-kasa/python-kasa/pull/1375) (@sdb9696)
|
|
73
198
|
- Force single for some smartcam requests [\#1374](https://github.com/python-kasa/python-kasa/pull/1374) (@sdb9696)
|
|
74
|
-
- Add new methods to dump\_devinfo [\#1373](https://github.com/python-kasa/python-kasa/pull/1373) (@sdb9696)
|
|
75
|
-
- Update cli, light modules, and docs to use FeatureAttributes [\#1364](https://github.com/python-kasa/python-kasa/pull/1364) (@sdb9696)
|
|
76
199
|
- Pass raw components to SmartChildDevice init [\#1363](https://github.com/python-kasa/python-kasa/pull/1363) (@sdb9696)
|
|
77
200
|
- Fix line endings in device\_fixtures.py [\#1361](https://github.com/python-kasa/python-kasa/pull/1361) (@sdb9696)
|
|
78
|
-
- Update dump\_devinfo for raw discovery json and common redactors [\#1358](https://github.com/python-kasa/python-kasa/pull/1358) (@sdb9696)
|
|
79
201
|
- Tweak RELEASING.md instructions for patch releases [\#1347](https://github.com/python-kasa/python-kasa/pull/1347) (@sdb9696)
|
|
80
202
|
- Scrub more vacuum keys [\#1328](https://github.com/python-kasa/python-kasa/pull/1328) (@rytilahti)
|
|
81
203
|
- Remove unnecessary check for python \<3.10 [\#1326](https://github.com/python-kasa/python-kasa/pull/1326) (@rytilahti)
|
|
82
204
|
- Add vacuum component queries to dump\_devinfo [\#1320](https://github.com/python-kasa/python-kasa/pull/1320) (@rytilahti)
|
|
83
205
|
- Handle missing mgt\_encryption\_schm in discovery [\#1318](https://github.com/python-kasa/python-kasa/pull/1318) (@sdb9696)
|
|
84
206
|
- Follow main package structure for tests [\#1317](https://github.com/python-kasa/python-kasa/pull/1317) (@rytilahti)
|
|
207
|
+
- Handle smartcam device blocked response [\#1393](https://github.com/python-kasa/python-kasa/pull/1393) (@sdb9696)
|
|
208
|
+
- Handle KeyboardInterrupts in the cli better [\#1391](https://github.com/python-kasa/python-kasa/pull/1391) (@sdb9696)
|
|
209
|
+
- Simplify get\_protocol to prevent clashes with smartcam and robovac [\#1377](https://github.com/python-kasa/python-kasa/pull/1377) (@sdb9696)
|
|
210
|
+
- Add smartcam modules to package inits [\#1376](https://github.com/python-kasa/python-kasa/pull/1376) (@sdb9696)
|
|
211
|
+
- Enable saving of fixture files without git clone [\#1375](https://github.com/python-kasa/python-kasa/pull/1375) (@sdb9696)
|
|
212
|
+
- Add new methods to dump\_devinfo [\#1373](https://github.com/python-kasa/python-kasa/pull/1373) (@sdb9696)
|
|
213
|
+
- Update cli, light modules, and docs to use FeatureAttributes [\#1364](https://github.com/python-kasa/python-kasa/pull/1364) (@sdb9696)
|
|
214
|
+
- Update dump\_devinfo for raw discovery json and common redactors [\#1358](https://github.com/python-kasa/python-kasa/pull/1358) (@sdb9696)
|
|
85
215
|
|
|
86
216
|
## [0.8.1](https://github.com/python-kasa/python-kasa/tree/0.8.1) (2024-12-06)
|
|
87
217
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.0
|
|
4
4
|
Summary: Python API for TP-Link Kasa and Tapo devices
|
|
5
5
|
Project-URL: Homepage, https://github.com/python-kasa/python-kasa
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/python-kasa/python-kasa/issues
|
|
@@ -235,10 +235,12 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
235
235
|
|
|
236
236
|
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP15
|
|
237
237
|
- **Power Strips**: P210M, P300, P304M, P306, TP25
|
|
238
|
-
- **Wall Switches**: S500D, S505, S505D
|
|
238
|
+
- **Wall Switches**: S210, S220, S500D, S505, S505D
|
|
239
239
|
- **Bulbs**: L510B, L510E, L530E, L630
|
|
240
240
|
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
|
|
241
|
-
- **Cameras**: C100, C210, C225, C325WB, C520WS, TC65, TC70
|
|
241
|
+
- **Cameras**: C100, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70
|
|
242
|
+
- **Doorbells and chimes**: D100C, D130, D230
|
|
243
|
+
- **Vacuums**: RV20 Max Plus, RV30 Max
|
|
242
244
|
- **Hubs**: H100, H200
|
|
243
245
|
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
|
|
244
246
|
|
|
@@ -198,10 +198,12 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
198
198
|
|
|
199
199
|
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP15
|
|
200
200
|
- **Power Strips**: P210M, P300, P304M, P306, TP25
|
|
201
|
-
- **Wall Switches**: S500D, S505, S505D
|
|
201
|
+
- **Wall Switches**: S210, S220, S500D, S505, S505D
|
|
202
202
|
- **Bulbs**: L510B, L510E, L530E, L630
|
|
203
203
|
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
|
|
204
|
-
- **Cameras**: C100, C210, C225, C325WB, C520WS, TC65, TC70
|
|
204
|
+
- **Cameras**: C100, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70
|
|
205
|
+
- **Doorbells and chimes**: D100C, D130, D230
|
|
206
|
+
- **Vacuums**: RV20 Max Plus, RV30 Max
|
|
205
207
|
- **Hubs**: H100, H200
|
|
206
208
|
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
|
|
207
209
|
|
|
@@ -54,7 +54,8 @@ from kasa.protocols.smartcamprotocol import (
|
|
|
54
54
|
from kasa.protocols.smartprotocol import REDACTORS as SMART_REDACTORS
|
|
55
55
|
from kasa.protocols.smartprotocol import SmartProtocol, _ChildProtocolWrapper
|
|
56
56
|
from kasa.smart import SmartChildDevice, SmartDevice
|
|
57
|
-
from kasa.smartcam import SmartCamDevice
|
|
57
|
+
from kasa.smartcam import SmartCamChild, SmartCamDevice
|
|
58
|
+
from kasa.smartcam.smartcamchild import CHILD_INFO_FROM_PARENT
|
|
58
59
|
|
|
59
60
|
Call = namedtuple("Call", "module method")
|
|
60
61
|
FixtureResult = namedtuple("FixtureResult", "filename, folder, data, protocol_suffix")
|
|
@@ -62,11 +63,13 @@ FixtureResult = namedtuple("FixtureResult", "filename, folder, data, protocol_su
|
|
|
62
63
|
SMART_FOLDER = "tests/fixtures/smart/"
|
|
63
64
|
SMARTCAM_FOLDER = "tests/fixtures/smartcam/"
|
|
64
65
|
SMART_CHILD_FOLDER = "tests/fixtures/smart/child/"
|
|
66
|
+
SMARTCAM_CHILD_FOLDER = "tests/fixtures/smartcam/child/"
|
|
65
67
|
IOT_FOLDER = "tests/fixtures/iot/"
|
|
66
68
|
|
|
67
69
|
SMART_PROTOCOL_SUFFIX = "SMART"
|
|
68
70
|
SMARTCAM_SUFFIX = "SMARTCAM"
|
|
69
71
|
SMART_CHILD_SUFFIX = "SMART.CHILD"
|
|
72
|
+
SMARTCAM_CHILD_SUFFIX = "SMARTCAM.CHILD"
|
|
70
73
|
IOT_SUFFIX = "IOT"
|
|
71
74
|
|
|
72
75
|
NO_GIT_FIXTURE_FOLDER = "kasa-fixtures"
|
|
@@ -297,7 +300,9 @@ async def cli(
|
|
|
297
300
|
connection_type = DeviceConnectionParameters.from_values(
|
|
298
301
|
dr.device_type,
|
|
299
302
|
dr.mgt_encrypt_schm.encrypt_type,
|
|
300
|
-
dr.mgt_encrypt_schm.lv,
|
|
303
|
+
login_version=dr.mgt_encrypt_schm.lv,
|
|
304
|
+
https=dr.mgt_encrypt_schm.is_support_https,
|
|
305
|
+
http_port=dr.mgt_encrypt_schm.http_port,
|
|
301
306
|
)
|
|
302
307
|
dc = DeviceConfig(
|
|
303
308
|
host=host,
|
|
@@ -844,9 +849,8 @@ async def get_smart_test_calls(protocol: SmartProtocol):
|
|
|
844
849
|
return test_calls, successes
|
|
845
850
|
|
|
846
851
|
|
|
847
|
-
def get_smart_child_fixture(response):
|
|
852
|
+
def get_smart_child_fixture(response, model_info, folder, suffix):
|
|
848
853
|
"""Get a seperate fixture for the child device."""
|
|
849
|
-
model_info = SmartDevice._get_device_info(response, None)
|
|
850
854
|
hw_version = model_info.hardware_version
|
|
851
855
|
fw_version = model_info.firmware_version
|
|
852
856
|
model = model_info.long_name
|
|
@@ -855,12 +859,68 @@ def get_smart_child_fixture(response):
|
|
|
855
859
|
save_filename = f"{model}_{hw_version}_{fw_version}"
|
|
856
860
|
return FixtureResult(
|
|
857
861
|
filename=save_filename,
|
|
858
|
-
folder=
|
|
862
|
+
folder=folder,
|
|
859
863
|
data=response,
|
|
860
|
-
protocol_suffix=
|
|
864
|
+
protocol_suffix=suffix,
|
|
861
865
|
)
|
|
862
866
|
|
|
863
867
|
|
|
868
|
+
def scrub_child_device_ids(
|
|
869
|
+
main_response: dict, child_responses: dict
|
|
870
|
+
) -> dict[str, str]:
|
|
871
|
+
"""Scrub all the child device ids in the responses."""
|
|
872
|
+
# Make the scrubbed id map
|
|
873
|
+
scrubbed_child_id_map = {
|
|
874
|
+
device_id: f"SCRUBBED_CHILD_DEVICE_ID_{index + 1}"
|
|
875
|
+
for index, device_id in enumerate(child_responses.keys())
|
|
876
|
+
if device_id != ""
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
for child_id, response in child_responses.items():
|
|
880
|
+
scrubbed_child_id = scrubbed_child_id_map[child_id]
|
|
881
|
+
# scrub the device id in the child's get info response
|
|
882
|
+
# The checks for the device_id will ensure we can get a fixture
|
|
883
|
+
# even if the data is unexpectedly not available although it should
|
|
884
|
+
# always be there
|
|
885
|
+
if "get_device_info" in response and "device_id" in response["get_device_info"]:
|
|
886
|
+
response["get_device_info"]["device_id"] = scrubbed_child_id
|
|
887
|
+
elif (
|
|
888
|
+
basic_info := response.get("getDeviceInfo", {})
|
|
889
|
+
.get("device_info", {})
|
|
890
|
+
.get("basic_info")
|
|
891
|
+
) and "dev_id" in basic_info:
|
|
892
|
+
basic_info["dev_id"] = scrubbed_child_id
|
|
893
|
+
else:
|
|
894
|
+
_LOGGER.error(
|
|
895
|
+
"Cannot find device id in child get device info: %s", child_id
|
|
896
|
+
)
|
|
897
|
+
|
|
898
|
+
# Scrub the device ids in the parent for smart protocol
|
|
899
|
+
if gc := main_response.get("get_child_device_component_list"):
|
|
900
|
+
for child in gc["child_component_list"]:
|
|
901
|
+
device_id = child["device_id"]
|
|
902
|
+
child["device_id"] = scrubbed_child_id_map[device_id]
|
|
903
|
+
for child in main_response["get_child_device_list"]["child_device_list"]:
|
|
904
|
+
device_id = child["device_id"]
|
|
905
|
+
child["device_id"] = scrubbed_child_id_map[device_id]
|
|
906
|
+
|
|
907
|
+
# Scrub the device ids in the parent for the smart camera protocol
|
|
908
|
+
if gc := main_response.get("getChildDeviceComponentList"):
|
|
909
|
+
for child in gc["child_component_list"]:
|
|
910
|
+
device_id = child["device_id"]
|
|
911
|
+
child["device_id"] = scrubbed_child_id_map[device_id]
|
|
912
|
+
for child in main_response["getChildDeviceList"]["child_device_list"]:
|
|
913
|
+
if device_id := child.get("device_id"):
|
|
914
|
+
child["device_id"] = scrubbed_child_id_map[device_id]
|
|
915
|
+
continue
|
|
916
|
+
elif dev_id := child.get("dev_id"):
|
|
917
|
+
child["dev_id"] = scrubbed_child_id_map[dev_id]
|
|
918
|
+
continue
|
|
919
|
+
_LOGGER.error("Could not find a device id for the child device: %s", child)
|
|
920
|
+
|
|
921
|
+
return scrubbed_child_id_map
|
|
922
|
+
|
|
923
|
+
|
|
864
924
|
async def get_smart_fixtures(
|
|
865
925
|
protocol: SmartProtocol,
|
|
866
926
|
*,
|
|
@@ -917,21 +977,19 @@ async def get_smart_fixtures(
|
|
|
917
977
|
finally:
|
|
918
978
|
await protocol.close()
|
|
919
979
|
|
|
980
|
+
# Put all the successes into a dict[child_device_id or "", successes[]]
|
|
920
981
|
device_requests: dict[str, list[SmartCall]] = {}
|
|
921
982
|
for success in successes:
|
|
922
983
|
device_request = device_requests.setdefault(success.child_device_id, [])
|
|
923
984
|
device_request.append(success)
|
|
924
985
|
|
|
925
|
-
scrubbed_device_ids = {
|
|
926
|
-
device_id: f"SCRUBBED_CHILD_DEVICE_ID_{index}"
|
|
927
|
-
for index, device_id in enumerate(device_requests.keys())
|
|
928
|
-
if device_id != ""
|
|
929
|
-
}
|
|
930
|
-
|
|
931
986
|
final = await _make_final_calls(
|
|
932
987
|
protocol, device_requests[""], "All successes", batch_size, child_device_id=""
|
|
933
988
|
)
|
|
934
989
|
fixture_results = []
|
|
990
|
+
|
|
991
|
+
# Make the final child calls
|
|
992
|
+
child_responses = {}
|
|
935
993
|
for child_device_id, requests in device_requests.items():
|
|
936
994
|
if child_device_id == "":
|
|
937
995
|
continue
|
|
@@ -942,55 +1000,82 @@ async def get_smart_fixtures(
|
|
|
942
1000
|
batch_size,
|
|
943
1001
|
child_device_id=child_device_id,
|
|
944
1002
|
)
|
|
1003
|
+
child_responses[child_device_id] = response
|
|
945
1004
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1005
|
+
# scrub the child ids
|
|
1006
|
+
scrubbed_child_id_map = scrub_child_device_ids(final, child_responses)
|
|
1007
|
+
|
|
1008
|
+
# Redact data from the main device response. _wrap_redactors ensure we do
|
|
1009
|
+
# not redact the scrubbed child device ids and replaces REDACTED_partial_id
|
|
1010
|
+
# with zeros
|
|
1011
|
+
final = redact_data(final, _wrap_redactors(SMART_REDACTORS))
|
|
1012
|
+
|
|
1013
|
+
# smart cam child devices provide more information in getChildDeviceList on the
|
|
1014
|
+
# parent than they return when queried directly for getDeviceInfo so we will store
|
|
1015
|
+
# it in the child fixture.
|
|
1016
|
+
if smart_cam_child_list := final.get("getChildDeviceList"):
|
|
1017
|
+
child_infos_on_parent = {
|
|
1018
|
+
info["device_id"]: info
|
|
1019
|
+
for info in smart_cam_child_list["child_device_list"]
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
for child_id, response in child_responses.items():
|
|
1023
|
+
scrubbed_child_id = scrubbed_child_id_map[child_id]
|
|
1024
|
+
|
|
1025
|
+
# Get the parent model for checking whether to create a seperate child fixture
|
|
1026
|
+
if model := final.get("get_device_info", {}).get("model"):
|
|
1027
|
+
parent_model = model
|
|
1028
|
+
elif (
|
|
1029
|
+
device_model := final.get("getDeviceInfo", {})
|
|
1030
|
+
.get("device_info", {})
|
|
1031
|
+
.get("basic_info", {})
|
|
1032
|
+
.get("device_model")
|
|
1033
|
+
):
|
|
1034
|
+
parent_model = device_model
|
|
956
1035
|
else:
|
|
957
|
-
|
|
1036
|
+
parent_model = None
|
|
1037
|
+
_LOGGER.error("Cannot determine parent device model.")
|
|
1038
|
+
|
|
1039
|
+
# different model smart child device
|
|
958
1040
|
if (
|
|
959
|
-
"
|
|
960
|
-
and
|
|
961
|
-
and
|
|
1041
|
+
(child_model := response.get("get_device_info", {}).get("model"))
|
|
1042
|
+
and parent_model
|
|
1043
|
+
and child_model != parent_model
|
|
1044
|
+
):
|
|
1045
|
+
response = redact_data(response, _wrap_redactors(SMART_REDACTORS))
|
|
1046
|
+
model_info = SmartDevice._get_device_info(response, None)
|
|
1047
|
+
fixture_results.append(
|
|
1048
|
+
get_smart_child_fixture(
|
|
1049
|
+
response, model_info, SMART_CHILD_FOLDER, SMART_CHILD_SUFFIX
|
|
1050
|
+
)
|
|
1051
|
+
)
|
|
1052
|
+
# different model smartcam child device
|
|
1053
|
+
elif (
|
|
1054
|
+
(
|
|
1055
|
+
child_model := response.get("getDeviceInfo", {})
|
|
1056
|
+
.get("device_info", {})
|
|
1057
|
+
.get("basic_info", {})
|
|
1058
|
+
.get("device_model")
|
|
1059
|
+
)
|
|
1060
|
+
and parent_model
|
|
962
1061
|
and child_model != parent_model
|
|
963
1062
|
):
|
|
964
1063
|
response = redact_data(response, _wrap_redactors(SMART_REDACTORS))
|
|
965
|
-
|
|
1064
|
+
# There is more info in the childDeviceList on the parent
|
|
1065
|
+
# particularly the region is needed here.
|
|
1066
|
+
child_info_from_parent = child_infos_on_parent[scrubbed_child_id]
|
|
1067
|
+
response[CHILD_INFO_FROM_PARENT] = child_info_from_parent
|
|
1068
|
+
model_info = SmartCamChild._get_device_info(response, None)
|
|
1069
|
+
fixture_results.append(
|
|
1070
|
+
get_smart_child_fixture(
|
|
1071
|
+
response, model_info, SMARTCAM_CHILD_FOLDER, SMARTCAM_CHILD_SUFFIX
|
|
1072
|
+
)
|
|
1073
|
+
)
|
|
1074
|
+
# same model child device
|
|
966
1075
|
else:
|
|
967
1076
|
cd = final.setdefault("child_devices", {})
|
|
968
|
-
cd[
|
|
1077
|
+
cd[scrubbed_child_id] = response
|
|
969
1078
|
|
|
970
|
-
# Scrub the device ids in the parent for smart protocol
|
|
971
|
-
if gc := final.get("get_child_device_component_list"):
|
|
972
|
-
for child in gc["child_component_list"]:
|
|
973
|
-
device_id = child["device_id"]
|
|
974
|
-
child["device_id"] = scrubbed_device_ids[device_id]
|
|
975
|
-
for child in final["get_child_device_list"]["child_device_list"]:
|
|
976
|
-
device_id = child["device_id"]
|
|
977
|
-
child["device_id"] = scrubbed_device_ids[device_id]
|
|
978
|
-
|
|
979
|
-
# Scrub the device ids in the parent for the smart camera protocol
|
|
980
|
-
if gc := final.get("getChildDeviceComponentList"):
|
|
981
|
-
for child in gc["child_component_list"]:
|
|
982
|
-
device_id = child["device_id"]
|
|
983
|
-
child["device_id"] = scrubbed_device_ids[device_id]
|
|
984
|
-
for child in final["getChildDeviceList"]["child_device_list"]:
|
|
985
|
-
if device_id := child.get("device_id"):
|
|
986
|
-
child["device_id"] = scrubbed_device_ids[device_id]
|
|
987
|
-
continue
|
|
988
|
-
elif dev_id := child.get("dev_id"):
|
|
989
|
-
child["dev_id"] = scrubbed_device_ids[dev_id]
|
|
990
|
-
continue
|
|
991
|
-
_LOGGER.error("Could not find a device for the child device: %s", child)
|
|
992
|
-
|
|
993
|
-
final = redact_data(final, _wrap_redactors(SMART_REDACTORS))
|
|
994
1079
|
discovery_result = None
|
|
995
1080
|
if discovery_info:
|
|
996
1081
|
final["discovery_result"] = redact_data(
|
|
@@ -13,7 +13,7 @@ from typing import Any, NamedTuple
|
|
|
13
13
|
from kasa.device_type import DeviceType
|
|
14
14
|
from kasa.iot import IotDevice
|
|
15
15
|
from kasa.smart import SmartDevice
|
|
16
|
-
from kasa.smartcam import SmartCamDevice
|
|
16
|
+
from kasa.smartcam import SmartCamChild, SmartCamDevice
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class SupportedVersion(NamedTuple):
|
|
@@ -36,6 +36,9 @@ DEVICE_TYPE_TO_PRODUCT_GROUP = {
|
|
|
36
36
|
DeviceType.Bulb: "Bulbs",
|
|
37
37
|
DeviceType.LightStrip: "Light Strips",
|
|
38
38
|
DeviceType.Camera: "Cameras",
|
|
39
|
+
DeviceType.Doorbell: "Doorbells and chimes",
|
|
40
|
+
DeviceType.Chime: "Doorbells and chimes",
|
|
41
|
+
DeviceType.Vacuum: "Vacuums",
|
|
39
42
|
DeviceType.Hub: "Hubs",
|
|
40
43
|
DeviceType.Sensor: "Hub-Connected Devices",
|
|
41
44
|
DeviceType.Thermostat: "Hub-Connected Devices",
|
|
@@ -49,6 +52,7 @@ IOT_FOLDER = "tests/fixtures/iot/"
|
|
|
49
52
|
SMART_FOLDER = "tests/fixtures/smart/"
|
|
50
53
|
SMART_CHILD_FOLDER = "tests/fixtures/smart/child"
|
|
51
54
|
SMARTCAM_FOLDER = "tests/fixtures/smartcam/"
|
|
55
|
+
SMARTCAM_CHILD_FOLDER = "tests/fixtures/smartcam/child"
|
|
52
56
|
|
|
53
57
|
|
|
54
58
|
def generate_supported(args):
|
|
@@ -66,6 +70,7 @@ def generate_supported(args):
|
|
|
66
70
|
_get_supported_devices(supported, SMART_FOLDER, SmartDevice)
|
|
67
71
|
_get_supported_devices(supported, SMART_CHILD_FOLDER, SmartDevice)
|
|
68
72
|
_get_supported_devices(supported, SMARTCAM_FOLDER, SmartCamDevice)
|
|
73
|
+
_get_supported_devices(supported, SMARTCAM_CHILD_FOLDER, SmartCamChild)
|
|
69
74
|
|
|
70
75
|
readme_updated = _update_supported_file(
|
|
71
76
|
README_FILENAME, _supported_summary(supported), print_diffs
|
|
@@ -214,7 +219,7 @@ def _get_supported_devices(
|
|
|
214
219
|
smodel = stype.setdefault(model_info.long_name, [])
|
|
215
220
|
smodel.append(
|
|
216
221
|
SupportedVersion(
|
|
217
|
-
region=model_info.region,
|
|
222
|
+
region=model_info.region if model_info.region else "",
|
|
218
223
|
hw=model_info.hardware_version,
|
|
219
224
|
fw=model_info.firmware_version,
|
|
220
225
|
auth=model_info.requires_auth,
|
|
@@ -118,6 +118,16 @@ class SmartRequest:
|
|
|
118
118
|
enable: bool
|
|
119
119
|
id: str | None = None
|
|
120
120
|
|
|
121
|
+
@dataclass
|
|
122
|
+
class GetCleanAttrParams(SmartRequestParams):
|
|
123
|
+
"""CleanAttr params.
|
|
124
|
+
|
|
125
|
+
Decides which cleaning settings are requested
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
#: type can be global or pose
|
|
129
|
+
type: str = "global"
|
|
130
|
+
|
|
121
131
|
@staticmethod
|
|
122
132
|
def get_raw_request(
|
|
123
133
|
method: str, params: SmartRequestParams | None = None
|
|
@@ -427,23 +437,32 @@ COMPONENT_REQUESTS = {
|
|
|
427
437
|
"overheat_protection": [],
|
|
428
438
|
# Vacuum components
|
|
429
439
|
"clean": [
|
|
440
|
+
SmartRequest.get_raw_request("getCarpetClean"),
|
|
430
441
|
SmartRequest.get_raw_request("getCleanRecords"),
|
|
431
442
|
SmartRequest.get_raw_request("getVacStatus"),
|
|
443
|
+
SmartRequest.get_raw_request("getAreaUnit"),
|
|
444
|
+
SmartRequest.get_raw_request("getCleanInfo"),
|
|
445
|
+
SmartRequest.get_raw_request("getCleanStatus"),
|
|
446
|
+
SmartRequest("getCleanAttr", SmartRequest.GetCleanAttrParams()),
|
|
432
447
|
],
|
|
433
448
|
"battery": [SmartRequest.get_raw_request("getBatteryInfo")],
|
|
434
449
|
"consumables": [SmartRequest.get_raw_request("getConsumablesInfo")],
|
|
435
450
|
"direction_control": [],
|
|
436
|
-
"button_and_led": [],
|
|
451
|
+
"button_and_led": [SmartRequest.get_raw_request("getChildLockInfo")],
|
|
437
452
|
"speaker": [
|
|
438
453
|
SmartRequest.get_raw_request("getSupportVoiceLanguage"),
|
|
439
454
|
SmartRequest.get_raw_request("getCurrentVoiceLanguage"),
|
|
455
|
+
SmartRequest.get_raw_request("getVolume"),
|
|
440
456
|
],
|
|
441
457
|
"map": [
|
|
442
458
|
SmartRequest.get_raw_request("getMapInfo"),
|
|
443
459
|
SmartRequest.get_raw_request("getMapData"),
|
|
444
460
|
],
|
|
445
461
|
"auto_change_map": [SmartRequest.get_raw_request("getAutoChangeMap")],
|
|
446
|
-
"dust_bucket": [
|
|
462
|
+
"dust_bucket": [
|
|
463
|
+
SmartRequest.get_raw_request("getAutoDustCollection"),
|
|
464
|
+
SmartRequest.get_raw_request("getDustCollectionInfo"),
|
|
465
|
+
],
|
|
447
466
|
"mop": [SmartRequest.get_raw_request("getMopState")],
|
|
448
467
|
"do_not_disturb": [SmartRequest.get_raw_request("getDoNotDisturb")],
|
|
449
468
|
"charge_pose_clean": [],
|