python-kasa 0.9.1__tar.gz → 0.10.1__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.1 → python_kasa-0.10.1}/CHANGELOG.md +116 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/PKG-INFO +4 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/README.md +3 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/dump_devinfo.py +137 -52
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/generate_supported.py +6 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/helpers/smartrequests.py +21 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/parse_pcap_klap.py +1 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/strip.md +7 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/tutorial.py +2 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/common.py +31 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/device.py +3 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/discover.py +62 -19
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/feature.py +17 -5
- python_kasa-0.10.1/kasa/cli/hub.py +95 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/lazygroup.py +1 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/main.py +14 -5
- python_kasa-0.10.1/kasa/cli/vacuum.py +84 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/device.py +42 -6
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/device_factory.py +32 -12
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/device_type.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/deviceconfig.py +13 -4
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/discover.py +66 -49
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/exceptions.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/feature.py +27 -7
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/__init__.py +4 -0
- python_kasa-0.10.1/kasa/interfaces/alarm.py +75 -0
- python_kasa-0.10.1/kasa/interfaces/childsetup.py +70 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/energy.py +1 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/light.py +44 -29
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/lighteffect.py +2 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotdimmer.py +3 -4
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotstrip.py +8 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/__init__.py +2 -0
- python_kasa-0.10.1/kasa/iot/modules/dimmer.py +270 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/light.py +4 -40
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/lighteffect.py +2 -11
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/lightpreset.py +1 -1
- python_kasa-0.10.1/kasa/iot/modules/motion.py +408 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/module.py +32 -5
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/protocols/iotprotocol.py +1 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/protocols/smartcamprotocol.py +5 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/protocols/smartprotocol.py +19 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/__init__.py +18 -0
- python_kasa-0.10.1/kasa/smart/modules/alarm.py +262 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/batterysensor.py +28 -14
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/childdevice.py +8 -0
- python_kasa-0.10.1/kasa/smart/modules/childlock.py +37 -0
- python_kasa-0.10.1/kasa/smart/modules/childsetup.py +112 -0
- python_kasa-0.10.1/kasa/smart/modules/clean.py +411 -0
- python_kasa-0.10.1/kasa/smart/modules/cleanrecords.py +205 -0
- python_kasa-0.10.1/kasa/smart/modules/consumables.py +170 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/devicemodule.py +4 -1
- python_kasa-0.10.1/kasa/smart/modules/dustbin.py +127 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/energy.py +6 -4
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/light.py +3 -34
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/lightstripeffect.py +3 -9
- python_kasa-0.10.1/kasa/smart/modules/mop.py +90 -0
- python_kasa-0.10.1/kasa/smart/modules/powerprotection.py +124 -0
- python_kasa-0.10.1/kasa/smart/modules/speaker.py +67 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/smartchilddevice.py +18 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/smartdevice.py +127 -40
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/smartmodule.py +23 -7
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/__init__.py +2 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/__init__.py +6 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/alarm.py +74 -24
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/babycrydetection.py +2 -0
- python_kasa-0.10.1/kasa/smartcam/modules/battery.py +113 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/camera.py +8 -5
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/childdevice.py +4 -1
- python_kasa-0.10.1/kasa/smartcam/modules/childsetup.py +112 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/device.py +8 -3
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/led.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/lensmask.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/motiondetection.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/persondetection.py +2 -0
- python_kasa-0.10.1/kasa/smartcam/modules/petdetection.py +49 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/tamperdetection.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/time.py +2 -0
- python_kasa-0.10.1/kasa/smartcam/smartcamchild.py +118 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/smartcamdevice.py +74 -56
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/smartcammodule.py +7 -16
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/aestransport.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/klaptransport.py +45 -2
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/linkietransport.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/sslaestransport.py +2 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/ssltransport.py +3 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/xortransport.py +3 -5
- {python_kasa-0.9.1 → python_kasa-0.10.1}/pyproject.toml +3 -5
- python_kasa-0.10.1/tests/cli/test_hub.py +53 -0
- python_kasa-0.10.1/tests/cli/test_vacuum.py +114 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/conftest.py +13 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/device_fixtures.py +31 -3
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/discovery_fixtures.py +67 -12
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fakeprotocol_iot.py +2 -5
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fakeprotocol_smart.py +192 -61
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fakeprotocol_smartcam.py +126 -33
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtureinfo.py +13 -11
- python_kasa-0.10.1/tests/fixtures/iot/KS230(US)_2.0_1.0.11.json +112 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/serialization/deviceconfig_camera-aes-https.json +2 -3
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/serialization/deviceconfig_plug-klap.json +2 -3
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/serialization/deviceconfig_plug-xor.json +2 -3
- python_kasa-0.10.1/tests/fixtures/smart/D100C(US)_1.0_1.1.3.json +258 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +18 -0
- python_kasa-0.10.1/tests/fixtures/smart/RV20 Max Plus(EU)_1.0_1.0.7.json +382 -0
- python_kasa-0.10.1/tests/fixtures/smart/RV30 Max(US)_1.0_1.2.0.json +888 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +1 -1
- python_kasa-0.10.1/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +537 -0
- python_kasa-0.10.1/tests/fixtures/smartcam/C220(EU)_1.0_1.2.2.json +1234 -0
- python_kasa-0.10.1/tests/fixtures/smartcam/C720(US)_1.0_1.2.3.json +1039 -0
- python_kasa-0.10.1/tests/fixtures/smartcam/D130(US)_1.0_1.1.9.json +986 -0
- python_kasa-0.10.1/tests/fixtures/smartcam/H200(EU)_1.0_1.3.6.json +556 -0
- python_kasa-0.10.1/tests/fixtures/smartcam/child/D230(EU)_1.20_1.1.19.json +525 -0
- python_kasa-0.10.1/tests/iot/modules/test_dimmer.py +204 -0
- python_kasa-0.10.1/tests/iot/modules/test_motion.py +114 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/test_iotdevice.py +4 -3
- python_kasa-0.10.1/tests/smart/modules/test_alarm.py +124 -0
- python_kasa-0.10.1/tests/smart/modules/test_childlock.py +44 -0
- python_kasa-0.10.1/tests/smart/modules/test_childsetup.py +68 -0
- python_kasa-0.10.1/tests/smart/modules/test_clean.py +241 -0
- python_kasa-0.10.1/tests/smart/modules/test_cleanrecords.py +59 -0
- python_kasa-0.10.1/tests/smart/modules/test_consumables.py +53 -0
- python_kasa-0.10.1/tests/smart/modules/test_dustbin.py +111 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_fan.py +1 -1
- python_kasa-0.10.1/tests/smart/modules/test_mop.py +58 -0
- python_kasa-0.10.1/tests/smart/modules/test_powerprotection.py +98 -0
- python_kasa-0.10.1/tests/smart/modules/test_speaker.py +71 -0
- python_kasa-0.10.1/tests/smart/test_smartdevice.py +1012 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smartcam/modules/test_alarm.py +17 -5
- python_kasa-0.10.1/tests/smartcam/modules/test_battery.py +33 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smartcam/modules/test_camera.py +9 -3
- python_kasa-0.10.1/tests/smartcam/modules/test_childsetup.py +85 -0
- python_kasa-0.10.1/tests/smartcam/modules/test_petdetection.py +45 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smartcam/test_smartcamdevice.py +4 -4
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_bulb.py +68 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_cli.py +65 -15
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_common_modules.py +61 -4
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_device.py +21 -6
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_device_factory.py +14 -7
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_devtools.py +59 -5
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_discovery.py +31 -14
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_feature.py +16 -4
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_readme_examples.py +23 -0
- python_kasa-0.10.1/tests/transports/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/transports/test_aestransport.py +1 -1
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/transports/test_sslaestransport.py +3 -3
- python_kasa-0.9.1/kasa/iot/modules/motion.py +0 -102
- python_kasa-0.9.1/kasa/smart/modules/alarm.py +0 -145
- python_kasa-0.9.1/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -537
- python_kasa-0.9.1/tests/iot/modules/test_motion.py +0 -58
- python_kasa-0.9.1/tests/smart/test_smartdevice.py +0 -548
- {python_kasa-0.9.1 → python_kasa-0.10.1}/.gitignore +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/LICENSE +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/README.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/bench/benchmark.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/bench/utils/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/bench/utils/data.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/bench/utils/original.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/create_module_fixtures.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/helpers/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/helpers/smartcamrequests.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/parse_pcap.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/perftest.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/devtools/update_fixtures.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/Makefile +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/make.bat +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/SUPPORTED.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/_static/copybutton.js +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/cli.rst +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/codeinfo.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/conf.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/contribute.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/deprecated.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/featureattributes.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/connect.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/device.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/discover.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/energy.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/feature.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/light.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides/module.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/guides.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/index.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/library.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/reference.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/smartbulb.rst +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/smartdevice.rst +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/smartdimmer.rst +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/smartlightstrip.rst +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/smartplug.rst +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/smartstrip.rst +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/topics.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/docs/source/tutorial.md +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cachedzoneinfo.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/__main__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/light.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/schedule.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/time.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/usage.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/cli/wifi.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/credentials.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/emeterstatus.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/httpclient.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/fan.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/led.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/lightpreset.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/thermostat.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/interfaces/time.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/effects.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotbulb.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotcamera.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotdevice.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotlightstrip.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotmodule.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iotplug.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/iottimezone.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/ambientlight.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/antitheft.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/cloud.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/countdown.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/emeter.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/led.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/rulemodule.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/schedule.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/time.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/iot/modules/usage.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/json.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/modulemapping.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/modulemapping.pyi +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/protocols/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/protocols/protocol.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/py.typed +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/effects.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/autooff.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/brightness.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/childprotection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/cloud.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/color.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/colortemperature.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/contactsensor.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/fan.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/firmware.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/frostprotection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/homekit.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/humiditysensor.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/led.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/lighteffect.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/lightpreset.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/lighttransition.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/matter.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/motionsensor.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/overheatprotection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/reportmode.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/temperaturecontrol.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/temperaturesensor.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/thermostat.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/time.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/triggerlogs.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smart/modules/waterleaksensor.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/homekit.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/matter.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/smartcam/modules/pantilt.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/kasa/transports/basetransport.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/__init__.py +0 -0
- {python_kasa-0.9.1/tests/iot → python_kasa-0.10.1/tests/cli}/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/EP10(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/EP40(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/ES20M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(UK)_1.0_1.2.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(UK)_4.1_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(US)_1.0_1.2.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(US)_2.0_1.5.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS103(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS103(US)_2.1_1.1.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS103(US)_2.1_1.1.4.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS105(US)_1.0_1.5.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS107(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS110(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS110(EU)_4.0_1.0.4.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS110(US)_1.0_1.2.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_2.0_1.5.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_3.0_1.1.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_5.0_1.0.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_5.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS210(US)_1.0_1.5.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS210(US)_2.0_1.1.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS220(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS220(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_2.0_1.0.12.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL120(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL120(US)_1.0_1.8.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL125(US)_1.20_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL125(US)_2.0_1.0.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL125(US)_4.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL130(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL135(US)_1.0_1.0.15.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL135(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL420L5(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(UN)_2.0_1.0.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_2.0_1.0.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL50(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL60(UN)_1.0_1.1.4.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KL60(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP100(US)_3.0_1.0.1.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP105(UK)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP115(EU)_1.0_1.0.16.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP115(US)_1.0_1.0.17.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP115(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP125(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP200(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP303(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP303(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP303(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_2.0_1.0.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_3.0_1.0.4.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP401(US)_1.0_1.0.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP405(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KP405(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS200(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.12.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS220(US)_1.0_1.0.13.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS220M(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/KS230(US)_1.0_1.0.14.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iot/LB110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/iotcam/EC60(US)_4.0_2.3.22.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/EP40M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/HS200(US)_5.26_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KH100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KH100(EU)_1.0_1.5.12.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KP125M(US)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L630(EU)_1.0_1.1.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P100(US)_1.0.0_1.1.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P100(US)_1.0.0_1.3.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P100(US)_1.0.0_1.4.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P110M(AU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P110M(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P115(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P135(US)_1.0_1.2.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P210M(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P304M(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/P306(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200B(US)_1.0_1.12.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200D(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200D(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/S210(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/S220(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T110(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T110(US)_1.0_1.9.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T310(US)_1.0_1.5.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smart/child/T315(US)_1.0_1.8.0.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/C100_4.0_1.3.14.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.3.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/C210_2.0_1.3.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/C225(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/C325WB(EU)_1.0_1.1.17.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/C520WS(US)_1.0_1.2.8.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/H200(EU)_1.0_1.3.2.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/H200(US)_1.0_1.3.6.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/TC65_1.0_1.3.9.json +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/fixtures/smartcam/TC70_3.0_1.3.11.json +0 -0
- {python_kasa-0.9.1/tests/iot/modules → python_kasa-0.10.1/tests/iot}/__init__.py +0 -0
- {python_kasa-0.9.1/tests/protocols → python_kasa-0.10.1/tests/iot/modules}/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/modules/test_ambientlight.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/modules/test_cloud.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/modules/test_emeter.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/modules/test_schedule.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/modules/test_usage.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/test_iotbulb.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/test_iotdimmer.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/test_iotlightstrip.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/iot/test_wallswitch.py +0 -0
- {python_kasa-0.9.1/tests/smart → python_kasa-0.10.1/tests/protocols}/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/protocols/test_iotprotocol.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/protocols/test_smartprotocol.py +0 -0
- {python_kasa-0.9.1/tests/smart/features → python_kasa-0.10.1/tests/smart}/__init__.py +0 -0
- {python_kasa-0.9.1/tests/smart/modules → python_kasa-0.10.1/tests/smart/features}/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/features/test_brightness.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/features/test_colortemp.py +0 -0
- {python_kasa-0.9.1/tests/smartcam → python_kasa-0.10.1/tests/smart/modules}/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_autooff.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_childprotection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_contact.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_energy.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_firmware.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_homekit.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_humidity.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_light_effect.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_light_strip_effect.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_lighttransition.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_matter.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_motionsensor.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_temperature.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_temperaturecontrol.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_triggerlogs.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smart/modules/test_waterleak.py +0 -0
- {python_kasa-0.9.1/tests/smartcam/modules → python_kasa-0.10.1/tests/smartcam}/__init__.py +0 -0
- {python_kasa-0.9.1/tests/transports → python_kasa-0.10.1/tests/smartcam/modules}/__init__.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smartcam/modules/test_babycrydetection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smartcam/modules/test_motiondetection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smartcam/modules/test_persondetection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/smartcam/modules/test_tamperdetection.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_childdevice.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_device_type.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_deviceconfig.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_httpclient.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_plug.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/test_strip.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/transports/test_klaptransport.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/transports/test_linkietransport.py +0 -0
- {python_kasa-0.9.1 → python_kasa-0.10.1}/tests/transports/test_ssltransport.py +0 -0
|
@@ -1,5 +1,119 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.1](https://github.com/python-kasa/python-kasa/tree/0.10.1) (2025-02-02)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.10.0...0.10.1)
|
|
6
|
+
|
|
7
|
+
**Release summary:**
|
|
8
|
+
|
|
9
|
+
Small patch release for bugfixes
|
|
10
|
+
|
|
11
|
+
**Implemented enhancements:**
|
|
12
|
+
|
|
13
|
+
- dustbin\_mode: add 'off' mode for cleaner downstream impl [\#1488](https://github.com/python-kasa/python-kasa/pull/1488) (@rytilahti)
|
|
14
|
+
- Add Dimmer Configuration Support [\#1484](https://github.com/python-kasa/python-kasa/pull/1484) (@ryenitcher)
|
|
15
|
+
|
|
16
|
+
**Fixed bugs:**
|
|
17
|
+
|
|
18
|
+
- Do not return empty string for custom light effect name [\#1491](https://github.com/python-kasa/python-kasa/pull/1491) (@sdb9696)
|
|
19
|
+
- Add FeatureAttributes to smartcam Alarm [\#1489](https://github.com/python-kasa/python-kasa/pull/1489) (@sdb9696)
|
|
20
|
+
|
|
21
|
+
**Project maintenance:**
|
|
22
|
+
|
|
23
|
+
- Add module.device to the public api [\#1478](https://github.com/python-kasa/python-kasa/pull/1478) (@sdb9696)
|
|
24
|
+
|
|
25
|
+
## [0.10.0](https://github.com/python-kasa/python-kasa/tree/0.10.0) (2025-01-26)
|
|
26
|
+
|
|
27
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.9.1...0.10.0)
|
|
28
|
+
|
|
29
|
+
**Release summary:**
|
|
30
|
+
|
|
31
|
+
This release brings support for many new devices, including completely new device types:
|
|
32
|
+
|
|
33
|
+
- Support for Tapo robot vacuums. Special thanks to @steveredden, @MAXIGAMESSUPPER, and veep60 for helping to get this implemented!
|
|
34
|
+
- Support for hub attached cameras and doorbells (H200)
|
|
35
|
+
- Improved support for hubs (including pairing & better chime controls)
|
|
36
|
+
- Support for many new camera and doorbell device models, including C220, C720, D100C, D130, and D230
|
|
37
|
+
|
|
38
|
+
Many thanks to testers and new contributors - @steveredden, @DawidPietrykowski, @Obbay2, @andrewome, @ryenitcher and @etmmvdp!
|
|
39
|
+
|
|
40
|
+
**Breaking changes:**
|
|
41
|
+
|
|
42
|
+
- `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.
|
|
43
|
+
- `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.
|
|
44
|
+
- `alarm_volume` on the `smart.Alarm` module is changed from `str` to `int`
|
|
45
|
+
|
|
46
|
+
**Breaking changes:**
|
|
47
|
+
|
|
48
|
+
- Make uses\_http a readonly property of device config [\#1449](https://github.com/python-kasa/python-kasa/pull/1449) (@sdb9696)
|
|
49
|
+
- Allow passing alarm parameter overrides [\#1340](https://github.com/python-kasa/python-kasa/pull/1340) (@rytilahti)
|
|
50
|
+
- Deprecate legacy light module is\_capability checks [\#1297](https://github.com/python-kasa/python-kasa/pull/1297) (@sdb9696)
|
|
51
|
+
|
|
52
|
+
**Implemented enhancements:**
|
|
53
|
+
|
|
54
|
+
- Expose more battery sensors for D230 [\#1451](https://github.com/python-kasa/python-kasa/issues/1451)
|
|
55
|
+
- dumping HTTP POST Body for Tapo Vacuum \(RV30 Plus\) [\#937](https://github.com/python-kasa/python-kasa/issues/937)
|
|
56
|
+
- Add smartcam pet detection toggle module [\#1465](https://github.com/python-kasa/python-kasa/pull/1465) (@DawidPietrykowski)
|
|
57
|
+
- Add childlock module for vacuums [\#1461](https://github.com/python-kasa/python-kasa/pull/1461) (@rytilahti)
|
|
58
|
+
- Add ultra mode \(fanspeed = 5\) for vacuums [\#1459](https://github.com/python-kasa/python-kasa/pull/1459) (@rytilahti)
|
|
59
|
+
- Add setting to change carpet clean mode [\#1458](https://github.com/python-kasa/python-kasa/pull/1458) (@rytilahti)
|
|
60
|
+
- Add setting to change clean count [\#1457](https://github.com/python-kasa/python-kasa/pull/1457) (@rytilahti)
|
|
61
|
+
- Add mop module [\#1456](https://github.com/python-kasa/python-kasa/pull/1456) (@rytilahti)
|
|
62
|
+
- Enable dynamic hub child creation and deletion on update [\#1454](https://github.com/python-kasa/python-kasa/pull/1454) (@sdb9696)
|
|
63
|
+
- Expose current cleaning information [\#1453](https://github.com/python-kasa/python-kasa/pull/1453) (@rytilahti)
|
|
64
|
+
- Add battery module to smartcam devices [\#1452](https://github.com/python-kasa/python-kasa/pull/1452) (@sdb9696)
|
|
65
|
+
- Allow update of camera modules after setting values [\#1450](https://github.com/python-kasa/python-kasa/pull/1450) (@sdb9696)
|
|
66
|
+
- Update hub children on first update and delay subsequent updates [\#1438](https://github.com/python-kasa/python-kasa/pull/1438) (@sdb9696)
|
|
67
|
+
- Implement vacuum dustbin module \(dust\_bucket\) [\#1423](https://github.com/python-kasa/python-kasa/pull/1423) (@rytilahti)
|
|
68
|
+
- Add smartcam child device support for smartcam hubs [\#1413](https://github.com/python-kasa/python-kasa/pull/1413) (@sdb9696)
|
|
69
|
+
- Add vacuum speaker controls [\#1332](https://github.com/python-kasa/python-kasa/pull/1332) (@rytilahti)
|
|
70
|
+
- Add consumables module for vacuums [\#1327](https://github.com/python-kasa/python-kasa/pull/1327) (@rytilahti)
|
|
71
|
+
- Add ADC Value to PIR Enabled Switches [\#1263](https://github.com/python-kasa/python-kasa/pull/1263) (@ryenitcher)
|
|
72
|
+
- Add support for cleaning records [\#945](https://github.com/python-kasa/python-kasa/pull/945) (@rytilahti)
|
|
73
|
+
- Initial support for vacuums \(clean module\) [\#944](https://github.com/python-kasa/python-kasa/pull/944) (@rytilahti)
|
|
74
|
+
- Add support for pairing devices with hubs [\#859](https://github.com/python-kasa/python-kasa/pull/859) (@rytilahti)
|
|
75
|
+
- Add common alarm interface [\#1479](https://github.com/python-kasa/python-kasa/pull/1479) (@sdb9696)
|
|
76
|
+
- Add common childsetup interface [\#1470](https://github.com/python-kasa/python-kasa/pull/1470) (@sdb9696)
|
|
77
|
+
- Add childsetup module to smartcam hubs [\#1469](https://github.com/python-kasa/python-kasa/pull/1469) (@sdb9696)
|
|
78
|
+
- Only log one warning per unknown clean error code and status [\#1462](https://github.com/python-kasa/python-kasa/pull/1462) (@rytilahti)
|
|
79
|
+
- Add support for doorbells and chimes [\#1435](https://github.com/python-kasa/python-kasa/pull/1435) (@steveredden)
|
|
80
|
+
- Allow https for klaptransport [\#1415](https://github.com/python-kasa/python-kasa/pull/1415) (@rytilahti)
|
|
81
|
+
- Add powerprotection module [\#1337](https://github.com/python-kasa/python-kasa/pull/1337) (@rytilahti)
|
|
82
|
+
|
|
83
|
+
**Fixed bugs:**
|
|
84
|
+
|
|
85
|
+
- TP-Link HS300 Wi-Fi Power-Strip - "Parent On/Off" not functioning. [\#637](https://github.com/python-kasa/python-kasa/issues/637)
|
|
86
|
+
- Report 0 for instead of None for zero current and voltage [\#1483](https://github.com/python-kasa/python-kasa/pull/1483) (@ryenitcher)
|
|
87
|
+
- ssltransport: use debug logger for sending requests [\#1443](https://github.com/python-kasa/python-kasa/pull/1443) (@rytilahti)
|
|
88
|
+
- Fix discover cli command with host [\#1437](https://github.com/python-kasa/python-kasa/pull/1437) (@sdb9696)
|
|
89
|
+
- Fallback to is\_low for batterysensor's battery\_low [\#1420](https://github.com/python-kasa/python-kasa/pull/1420) (@rytilahti)
|
|
90
|
+
- Convert carpet\_clean\_mode to carpet\_boost switch [\#1486](https://github.com/python-kasa/python-kasa/pull/1486) (@rytilahti)
|
|
91
|
+
- Change category for empty dustbin feature from Primary to Config [\#1485](https://github.com/python-kasa/python-kasa/pull/1485) (@rytilahti)
|
|
92
|
+
- Disable iot camera creation until more complete [\#1480](https://github.com/python-kasa/python-kasa/pull/1480) (@sdb9696)
|
|
93
|
+
- Add error code 7 for clean module [\#1474](https://github.com/python-kasa/python-kasa/pull/1474) (@rytilahti)
|
|
94
|
+
- Fix iot strip turn on and off from parent [\#639](https://github.com/python-kasa/python-kasa/pull/639) (@Obbay2)
|
|
95
|
+
|
|
96
|
+
**Added support for devices:**
|
|
97
|
+
|
|
98
|
+
- Add C220\(EU\) 1.0 1.2.2 camera fixture [\#1466](https://github.com/python-kasa/python-kasa/pull/1466) (@DawidPietrykowski)
|
|
99
|
+
- Add D230\(EU\) 1.20 1.1.19 fixture [\#1448](https://github.com/python-kasa/python-kasa/pull/1448) (@sdb9696)
|
|
100
|
+
- Add fixture for C720 camera [\#1433](https://github.com/python-kasa/python-kasa/pull/1433) (@steveredden)
|
|
101
|
+
- Add D130\(US\) 1.0 1.1.9 fixture [\#1476](https://github.com/python-kasa/python-kasa/pull/1476) (@sdb9696)
|
|
102
|
+
- Add D100C\(US\) 1.0 1.1.3 fixture [\#1475](https://github.com/python-kasa/python-kasa/pull/1475) (@sdb9696)
|
|
103
|
+
|
|
104
|
+
**Project maintenance:**
|
|
105
|
+
|
|
106
|
+
- Enable CI workflow on PRs to feat/ fix/ and janitor/ [\#1471](https://github.com/python-kasa/python-kasa/pull/1471) (@sdb9696)
|
|
107
|
+
- Add commit-hook to prettify JSON files [\#1455](https://github.com/python-kasa/python-kasa/pull/1455) (@rytilahti)
|
|
108
|
+
- Add required sphinx.configuration [\#1446](https://github.com/python-kasa/python-kasa/pull/1446) (@rytilahti)
|
|
109
|
+
- Add more redactors for smartcams [\#1439](https://github.com/python-kasa/python-kasa/pull/1439) (@sdb9696)
|
|
110
|
+
- Add KS230\(US\) 2.0 1.0.11 IOT Fixture [\#1430](https://github.com/python-kasa/python-kasa/pull/1430) (@ZeliardM)
|
|
111
|
+
- Update ruff to 0.9 [\#1482](https://github.com/python-kasa/python-kasa/pull/1482) (@sdb9696)
|
|
112
|
+
- Cancel in progress CI workflows after new pushes [\#1481](https://github.com/python-kasa/python-kasa/pull/1481) (@sdb9696)
|
|
113
|
+
- Update test framework to support smartcam device discovery. [\#1477](https://github.com/python-kasa/python-kasa/pull/1477) (@sdb9696)
|
|
114
|
+
- Add tests for dump\_devinfo parent/child smartcam fixture generation [\#1428](https://github.com/python-kasa/python-kasa/pull/1428) (@sdb9696)
|
|
115
|
+
- Raise errors on single smartcam child requests [\#1427](https://github.com/python-kasa/python-kasa/pull/1427) (@sdb9696)
|
|
116
|
+
|
|
3
117
|
## [0.9.1](https://github.com/python-kasa/python-kasa/tree/0.9.1) (2025-01-06)
|
|
4
118
|
|
|
5
119
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.9.0...0.9.1)
|
|
@@ -19,8 +133,8 @@
|
|
|
19
133
|
**Fixed bugs:**
|
|
20
134
|
|
|
21
135
|
- T310 not detected with H200 Hub [\#1409](https://github.com/python-kasa/python-kasa/issues/1409)
|
|
22
|
-
- Backoff after xor timeout and improve error reporting [\#1424](https://github.com/python-kasa/python-kasa/pull/1424) (@bdraco)
|
|
23
136
|
- Fix incorrect obd src echo [\#1412](https://github.com/python-kasa/python-kasa/pull/1412) (@rytilahti)
|
|
137
|
+
- Backoff after xor timeout and improve error reporting [\#1424](https://github.com/python-kasa/python-kasa/pull/1424) (@bdraco)
|
|
24
138
|
- Handle smartcam partial list responses [\#1411](https://github.com/python-kasa/python-kasa/pull/1411) (@sdb9696)
|
|
25
139
|
|
|
26
140
|
**Added support for devices:**
|
|
@@ -34,8 +148,8 @@
|
|
|
34
148
|
|
|
35
149
|
**Project maintenance:**
|
|
36
150
|
|
|
37
|
-
- Add C210 2.0 1.3.11 fixture [\#1406](https://github.com/python-kasa/python-kasa/pull/1406) (@sdb9696)
|
|
38
151
|
- Add HS210\(US\) 3.0 1.0.10 IOT Fixture [\#1405](https://github.com/python-kasa/python-kasa/pull/1405) (@ZeliardM)
|
|
152
|
+
- Add C210 2.0 1.3.11 fixture [\#1406](https://github.com/python-kasa/python-kasa/pull/1406) (@sdb9696)
|
|
39
153
|
- Change smartcam detection features to category config [\#1402](https://github.com/python-kasa/python-kasa/pull/1402) (@sdb9696)
|
|
40
154
|
|
|
41
155
|
## [0.9.0](https://github.com/python-kasa/python-kasa/tree/0.9.0) (2024-12-21)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.10.1
|
|
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
|
|
@@ -238,7 +238,9 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
238
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
|
|
|
@@ -201,7 +201,9 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
201
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
|
|
@@ -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": [],
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
127.0.0.3
|
|
14
14
|
127.0.0.4
|
|
15
15
|
127.0.0.5
|
|
16
|
+
127.0.0.6
|
|
16
17
|
|
|
17
18
|
:meth:`~kasa.Discover.discover_single` returns a single device by hostname:
|
|
18
19
|
|
|
@@ -91,5 +92,5 @@ False
|
|
|
91
92
|
True
|
|
92
93
|
>>> for feat in dev.features.values():
|
|
93
94
|
>>> print(f"{feat.name}: {feat.value}")
|
|
94
|
-
Device ID: 0000000000000000000000000000000000000000\nState: True\nSignal Level: 2\nRSSI: -52\nSSID: #MASKED_SSID#\nReboot: <Action>\nBrightness: 50\nCloud connection: True\nHSV: HSV(hue=0, saturation=100, value=50)\nColor temperature: 2700\nAuto update enabled: True\nUpdate available: None\nCurrent firmware version: 1.1.6 Build 240130 Rel.173828\nAvailable firmware version: None\nCheck latest firmware: <Action>\nLight effect: Party\nLight preset: Light preset 1\nSmooth transition on: 2\nSmooth transition off: 2\nOverheated: False
|
|
95
|
+
Device ID: 0000000000000000000000000000000000000000\nState: True\nSignal Level: 2\nRSSI: -52\nSSID: #MASKED_SSID#\nReboot: <Action>\nDevice time: 2024-02-23 02:40:15+01:00\nBrightness: 50\nCloud connection: True\nHSV: HSV(hue=0, saturation=100, value=50)\nColor temperature: 2700\nAuto update enabled: True\nUpdate available: None\nCurrent firmware version: 1.1.6 Build 240130 Rel.173828\nAvailable firmware version: None\nCheck latest firmware: <Action>\nLight effect: Party\nLight preset: Light preset 1\nSmooth transition on: 2\nSmooth transition off: 2\nOverheated: False
|
|
95
96
|
"""
|
|
@@ -10,7 +10,7 @@ from collections.abc import Callable
|
|
|
10
10
|
from contextlib import contextmanager
|
|
11
11
|
from functools import singledispatch, update_wrapper, wraps
|
|
12
12
|
from gettext import gettext
|
|
13
|
-
from typing import TYPE_CHECKING, Any, Final
|
|
13
|
+
from typing import TYPE_CHECKING, Any, Final, NoReturn
|
|
14
14
|
|
|
15
15
|
import asyncclick as click
|
|
16
16
|
|
|
@@ -57,7 +57,7 @@ def echo(*args, **kwargs) -> None:
|
|
|
57
57
|
_echo(*args, **kwargs)
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
def error(msg: str) ->
|
|
60
|
+
def error(msg: str) -> NoReturn:
|
|
61
61
|
"""Print an error and exit."""
|
|
62
62
|
echo(f"[bold red]{msg}[/bold red]")
|
|
63
63
|
sys.exit(1)
|
|
@@ -68,6 +68,16 @@ def json_formatter_cb(result: Any, **kwargs) -> None:
|
|
|
68
68
|
if not kwargs.get("json"):
|
|
69
69
|
return
|
|
70
70
|
|
|
71
|
+
# Calling the discover command directly always returns a DeviceDict so if host
|
|
72
|
+
# was specified just format the device json
|
|
73
|
+
if (
|
|
74
|
+
(host := kwargs.get("host"))
|
|
75
|
+
and isinstance(result, dict)
|
|
76
|
+
and (dev := result.get(host))
|
|
77
|
+
and isinstance(dev, Device)
|
|
78
|
+
):
|
|
79
|
+
result = dev
|
|
80
|
+
|
|
71
81
|
@singledispatch
|
|
72
82
|
def to_serializable(val):
|
|
73
83
|
"""Regular obj-to-string for json serialization.
|
|
@@ -85,6 +95,25 @@ def json_formatter_cb(result: Any, **kwargs) -> None:
|
|
|
85
95
|
print(json_content)
|
|
86
96
|
|
|
87
97
|
|
|
98
|
+
async def invoke_subcommand(
|
|
99
|
+
command: click.BaseCommand,
|
|
100
|
+
ctx: click.Context,
|
|
101
|
+
args: list[str] | None = None,
|
|
102
|
+
**extra: Any,
|
|
103
|
+
) -> Any:
|
|
104
|
+
"""Invoke a click subcommand.
|
|
105
|
+
|
|
106
|
+
Calling ctx.Invoke() treats the command like a simple callback and doesn't
|
|
107
|
+
process any result_callbacks so we use this pattern from the click docs
|
|
108
|
+
https://click.palletsprojects.com/en/stable/exceptions/#what-if-i-don-t-want-that.
|
|
109
|
+
"""
|
|
110
|
+
if args is None:
|
|
111
|
+
args = []
|
|
112
|
+
sub_ctx = await command.make_context(command.name, args, parent=ctx, **extra)
|
|
113
|
+
async with sub_ctx:
|
|
114
|
+
return await command.invoke(sub_ctx)
|
|
115
|
+
|
|
116
|
+
|
|
88
117
|
def pass_dev_or_child(wrapped_function: Callable) -> Callable:
|
|
89
118
|
"""Pass the device or child to the click command based on the child options."""
|
|
90
119
|
child_help = (
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
from pprint import pformat as pf
|
|
6
|
+
from typing import TYPE_CHECKING
|
|
6
7
|
|
|
7
8
|
import asyncclick as click
|
|
8
9
|
|
|
@@ -82,6 +83,8 @@ async def state(ctx, dev: Device):
|
|
|
82
83
|
echo()
|
|
83
84
|
from .discover import _echo_discovery_info
|
|
84
85
|
|
|
86
|
+
if TYPE_CHECKING:
|
|
87
|
+
assert dev._discovery_info
|
|
85
88
|
_echo_discovery_info(dev._discovery_info)
|
|
86
89
|
|
|
87
90
|
return dev.internal_state
|