python-kasa 0.11.0.1__tar.gz → 0.12.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.11.0.1 → python_kasa-0.12.0}/CHANGELOG.md +32 -1
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/PKG-INFO +4 -3
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/README.md +2 -2
- python_kasa-0.12.0/devtools/release.py +371 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/common.py +1 -1
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/device.py +4 -1
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/device_factory.py +7 -1
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotdevice.py +31 -4
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotstrip.py +0 -2
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/protocols/smartcamprotocol.py +2 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/protocols/smartprotocol.py +5 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/smartdevice.py +16 -2
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/klaptransport.py +4 -32
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/linkietransport.py +2 -28
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/sslaestransport.py +6 -34
- python_kasa-0.12.0/kasa/transports/sslcontext.py +40 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/ssltransport.py +2 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/pyproject.toml +7 -1
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/device_fixtures.py +11 -1
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/discovery_fixtures.py +4 -0
- python_kasa-0.12.0/tests/fixtures/smart/P116M(IN)_1.0_1.4.4.json +467 -0
- python_kasa-0.12.0/tests/fixtures/smartcam/TD21(EU)_2.0_1.1.5.json +1071 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_homekit.py +18 -11
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/test_iotdevice.py +66 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/protocols/test_smartprotocol.py +33 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/test_smartdevice.py +27 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_cli.py +16 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_device.py +11 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_device_factory.py +22 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/transports/test_sslaestransport.py +0 -6
- python_kasa-0.12.0/tests/transports/test_sslcontext.py +11 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/.gitignore +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/LICENSE +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/README.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/bench/benchmark.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/bench/utils/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/bench/utils/data.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/bench/utils/original.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/create_module_fixtures.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/dump_devinfo.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/generate_supported.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/helpers/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/helpers/smartcamrequests.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/helpers/smartrequests.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/parse_pcap.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/parse_pcap_klap.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/perftest.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/devtools/update_fixtures.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/Makefile +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/make.bat +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/SUPPORTED.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/_static/copybutton.js +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/cli.rst +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/codeinfo.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/conf.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/contribute.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/deprecated.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/featureattributes.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/connect.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/device.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/discover.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/energy.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/feature.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/light.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/module.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides/strip.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/guides.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/index.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/library.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/reference.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/smartbulb.rst +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/smartdevice.rst +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/smartdimmer.rst +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/smartlightstrip.rst +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/smartplug.rst +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/smartstrip.rst +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/topics.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/source/tutorial.md +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/docs/tutorial.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cachedzoneinfo.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/__main__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/device.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/discover.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/feature.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/hub.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/lazygroup.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/light.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/main.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/schedule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/time.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/usage.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/vacuum.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/cli/wifi.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/credentials.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/device_type.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/deviceconfig.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/discover.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/emeterstatus.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/exceptions.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/feature.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/httpclient.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/alarm.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/childsetup.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/energy.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/fan.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/led.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/light.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/lighteffect.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/lightpreset.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/thermostat.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/interfaces/time.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/effects.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotbulb.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotcamera.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotdimmer.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotlightstrip.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotmodule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iotplug.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/iottimezone.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/ambientlight.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/antitheft.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/cloud.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/countdown.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/dimmer.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/emeter.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/homekit.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/led.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/light.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/lighteffect.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/lightpreset.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/motion.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/rulemodule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/schedule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/time.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/iot/modules/usage.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/json.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/module.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/modulemapping.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/modulemapping.pyi +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/protocols/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/protocols/iotprotocol.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/protocols/protocol.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/py.typed +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/effects.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/alarm.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/autooff.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/batterysensor.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/brightness.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/childdevice.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/childlock.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/childprotection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/childsetup.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/clean.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/cleanrecords.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/cloud.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/color.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/colortemperature.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/consumables.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/contactsensor.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/devicemodule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/dustbin.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/energy.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/fan.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/firmware.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/frostprotection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/homekit.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/humiditysensor.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/led.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/light.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/lighteffect.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/lightpreset.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/lightstripeffect.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/lightstripsegment.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/lighttransition.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/matter.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/mop.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/motionsensor.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/overheatprotection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/powerprotection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/reportmode.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/speaker.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/temperaturecontrol.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/temperaturesensor.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/thermostat.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/time.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/triggerlogs.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/modules/waterleaksensor.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/smartchilddevice.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smart/smartmodule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/detectionmodule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/alarm.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/babycrydetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/barkdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/battery.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/camera.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/childdevice.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/childsetup.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/device.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/glassdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/homekit.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/lastalertdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/led.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/lensmask.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/linecrossingdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/matter.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/meowdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/motiondetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/pantilt.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/persondetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/petdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/tamperdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/time.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/modules/vehicledetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/smartcamchild.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/smartcamdevice.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/smartcam/smartcammodule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/aestransport.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/basetransport.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/kasa/transports/xortransport.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/cli/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/cli/test_hub.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/cli/test_vacuum.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/conftest.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fakeprotocol_iot.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fakeprotocol_smart.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fakeprotocol_smartcam.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtureinfo.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/EP10(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/EP25(US)_1.0_1.0.14.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/EP40(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/ES20M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS100(UK)_1.0_1.2.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS100(UK)_4.1_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS100(US)_1.0_1.2.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS100(US)_2.0_1.5.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS103(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS103(US)_2.1_1.1.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS103(US)_2.1_1.1.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS105(US)_1.0_1.5.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS107(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS110(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS110(EU)_4.0_1.0.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS110(US)_1.0_1.2.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS200(US)_2.0_1.5.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS200(US)_3.0_1.1.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS200(US)_5.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS200(US)_5.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS210(US)_1.0_1.5.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS210(US)_2.0_1.1.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS220(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS220(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS300(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS300(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS300(US)_2.0_1.0.12.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/HS300(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL110B(UN)_1.0_1.8.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL120(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL120(US)_1.0_1.8.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL125(US)_1.20_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL125(US)_2.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL125(US)_4.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL130(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL135(US)_1.0_1.0.15.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL135(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL400L10(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL420L5(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL420L5(US)_1.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL430(UN)_2.0_1.0.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL430(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL50(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL60(UN)_1.0_1.1.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KL60(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP100(US)_3.0_1.0.1.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP105(UK)_1.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP115(EU)_1.0_1.0.16.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP115(US)_1.0_1.0.17.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP115(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP125(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP200(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP303(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP303(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP303(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP400(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP400(US)_2.0_1.0.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP400(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP400(US)_3.0_1.0.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP401(US)_1.0_1.0.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP405(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KP405(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS200(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.12.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS220(US)_1.0_1.0.13.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS220M(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS230(US)_1.0_1.0.14.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/KS230(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/LB100(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/LB110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iot/LB130(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/iotcam/EC60(US)_4.0_2.3.22.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/serialization/deviceconfig_camera-aes-https.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/serialization/deviceconfig_plug-klap.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/serialization/deviceconfig_plug-xor.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/D100C(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/EP40M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/H100(AU)_1.0_1.5.23.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/HS200(US)_5.26_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KH100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KH100(EU)_1.0_1.5.12.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KH100(UK)_1.0_1.7.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KP125M(US)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS225(US)_1.0_1.1.1.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L430C(EU)_1.0_1.0.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L430P(EU)_1.0_1.0.9.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L530B(EU)_3.0_1.1.9.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L530E(TW)_2.0_1.1.1.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L530EA(EU)_1.0_1.4.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L535E(EU)_3.0_1.1.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L630(EU)_1.0_1.1.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L930-5(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P100(US)_1.0.0_1.1.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P100(US)_1.0.0_1.3.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P100(US)_1.0.0_1.4.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P105(US)_1.0_1.2.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P110(AU)_1.0_1.3.1.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P110M(AU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P110M(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P115(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P125M(US)_1.0_1.4.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P135(US)_1.0_1.2.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P210M(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P304M(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P306(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/P316M(US)_1.6_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/RV20 Max Plus(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/RV30 Max(US)_1.0_1.2.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/S500(US)_1.0_1.2.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/S515D(US)_1.6_1.0.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/TP10(IT)_1.0_1.2.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/TS15(US)_1.0_1.2.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/KE100(UK)_1.0_2.15.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/KE110(EU)_1.0_1.4.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/S200B(US)_1.0_1.12.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/S200D(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/S200D(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/S210(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/S220(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T100(US)_1.0_1.12.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T110(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T110(US)_1.0_1.9.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T310(US)_1.0_1.5.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smart/child/T315(US)_1.0_1.8.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C100_4.0_1.3.14.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C101(US)_5.0_1.4.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C110(EU)_2.0_1.4.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C200_1.0_1.3.17.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C210(EU)_1.0_1.4.7.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C210_2.0_1.3.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C220(EU)_1.0_1.2.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C220(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C225(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C325WB(EU)_1.0_1.1.17.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C460(CA)_1.0_1.2.0.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C520WS(US)_1.0_1.2.8.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/C720(US)_1.0_1.2.3.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/D130(US)_1.0_1.1.9.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/H200(EU)_1.0_1.3.2.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/H200(EU)_1.0_1.3.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/H200(US)_1.0_1.3.6.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/TC40(EU)_2.0_1.0.4.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/TC65_1.0_1.3.9.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/TC70_3.0_1.3.11.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/fixtures/smartcam/child/D230(EU)_1.20_1.1.19.json +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_ambientlight.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_cloud.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_dimmer.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_emeter.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_motion.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_schedule.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/modules/test_usage.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/test_iotbulb.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/test_iotdimmer.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/test_iotlightstrip.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/test_iotstrip.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/test_iottimezone.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/iot/test_wallswitch.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/protocols/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/protocols/test_iotprotocol.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/features/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/features/test_brightness.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/features/test_colortemp.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_alarm.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_autooff.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_childlock.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_childprotection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_childsetup.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_clean.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_cleanrecords.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_consumables.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_contact.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_dustbin.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_energy.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_fan.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_firmware.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_homekit.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_humidity.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_light_effect.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_light_strip_effect.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_lightstripsegment.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_lighttransition.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_matter.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_mop.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_motionsensor.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_powerprotection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_speaker.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_temperature.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_temperaturecontrol.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_triggerlogs.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smart/modules/test_waterleak.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/test_alarm.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/test_battery.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/test_camera.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/test_childsetup.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/test_detections.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/test_lastalertdetection.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/modules/test_pantilt.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/smartcam/test_smartcamdevice.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_bulb.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_childdevice.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_common_modules.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_device_type.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_deviceconfig.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_devtools.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_discovery.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_feature.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_httpclient.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_plug.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_readme_examples.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/test_strip.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/transports/__init__.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/transports/test_aestransport.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/transports/test_credentials_hash.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/transports/test_klaptransport.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/transports/test_linkietransport.py +0 -0
- {python_kasa-0.11.0.1 → python_kasa-0.12.0}/tests/transports/test_ssltransport.py +0 -0
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.12.0](https://github.com/python-kasa/python-kasa/tree/0.12.0) (2026-10-25)
|
|
4
|
+
|
|
5
|
+
This release include several compatibility fixes (updated accepted SSL ciphers, removal of Homekit from the default update cycle).
|
|
6
|
+
The new API `Device.supports_module()` provide a way to find out if the device supports some specific module, e.g., HomeKit, without including it in the default update cycle.
|
|
7
|
+
|
|
8
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.11.0.1...0.12.0)
|
|
9
|
+
|
|
10
|
+
**Fixed bugs:**
|
|
11
|
+
|
|
12
|
+
- Keep hub children when the child component list is missing [\#1797](https://github.com/python-kasa/python-kasa/pull/1797) (@Richardtristan)
|
|
13
|
+
- Strip multi-word rich tags when rich is not installed [\#1807](https://github.com/python-kasa/python-kasa/pull/1807) (@wolfgang-aura)
|
|
14
|
+
- Add Device.supports_module() and stop querying HomeKit for iot devices [\#1808](https://github.com/python-kasa/python-kasa/pull/1808) (@rytilahti)
|
|
15
|
+
- Keep multi requests for smartcam devices after a timeout [\#1802](https://github.com/python-kasa/python-kasa/pull/1802) (@hugaraujo)
|
|
16
|
+
- Consolidate SSL ciphers and use them in SslTransport [\#1798](https://github.com/python-kasa/python-kasa/pull/1798) (@rytilahti)
|
|
17
|
+
- Raise UnsupportedDeviceError instead of crashing on unknown device types [\#1781](https://github.com/python-kasa/python-kasa/pull/1781) (@GhostCoder6969)
|
|
18
|
+
|
|
19
|
+
**Added support for devices:**
|
|
20
|
+
|
|
21
|
+
- Add TD21(EU) device fixture [\#1786](https://github.com/python-kasa/python-kasa/pull/1786) (@Smugaski)
|
|
22
|
+
- Add P116M(IN) fixture [\#1795](https://github.com/python-kasa/python-kasa/pull/1795) (@Partha-dev01)
|
|
23
|
+
|
|
24
|
+
**Project maintenance:**
|
|
25
|
+
|
|
26
|
+
- Add Python 3.15 to supported versions and update pins [\#1793](https://github.com/python-kasa/python-kasa/pull/1793) (@rytilahti)
|
|
27
|
+
- Generate the changelog with git-cliff and draft releases in CI [\#1809](https://github.com/python-kasa/python-kasa/pull/1809) (@rytilahti)
|
|
28
|
+
- Build and check packages in CI and publish workflows [\#1782](https://github.com/python-kasa/python-kasa/pull/1782) (@rytilahti)
|
|
29
|
+
|
|
30
|
+
**Other changes:**
|
|
31
|
+
|
|
32
|
+
- Use the real discovery reply in the TD21 fixture [\#1800](https://github.com/python-kasa/python-kasa/pull/1800) (@Smugaski)
|
|
33
|
+
|
|
3
34
|
## [0.11.0.1](https://github.com/python-kasa/python-kasa/tree/0.11.0.1) (2026-10-04)
|
|
4
35
|
|
|
5
36
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.10.2...0.11.0.1)
|
|
@@ -2500,4 +2531,4 @@ Other changes:
|
|
|
2500
2531
|
- Initial commit. [GadgetReactor]
|
|
2501
2532
|
|
|
2502
2533
|
|
|
2503
|
-
\* *
|
|
2534
|
+
\* *Entries up to 0.11.0.1 were generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator), later entries by [git-cliff](https://git-cliff.org)*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.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
|
|
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
19
20
|
Requires-Python: <4.0,>=3.11
|
|
20
21
|
Requires-Dist: aiohttp>=3
|
|
21
22
|
Requires-Dist: asyncclick>=8.1.7
|
|
@@ -228,13 +229,13 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
228
229
|
|
|
229
230
|
### Supported Tapo[^1] devices
|
|
230
231
|
|
|
231
|
-
- **Plugs**: P100, P105, P110, P110M, P115, P125M, P135, TP10, TP15
|
|
232
|
+
- **Plugs**: P100, P105, P110, P110M, P115, P116M, P125M, P135, TP10, TP15
|
|
232
233
|
- **Power Strips**: P210M, P300, P304M, P306, P316M, TP25
|
|
233
234
|
- **Wall Switches**: S210, S220, S500, S500D, S505, S505D, S515D, TS15
|
|
234
235
|
- **Bulbs**: L430C, L430P, L510B, L510E, L530B, L530E, L530EA, L535E, L630
|
|
235
236
|
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
|
|
236
237
|
- **Cameras**: C100, C101, C110, C200, C210, C220, C225, C325WB, C460, C520WS, C720, TC40, TC65, TC70
|
|
237
|
-
- **Doorbells and chimes**: D100C, D130, D230
|
|
238
|
+
- **Doorbells and chimes**: D100C, D130, D230, TD21
|
|
238
239
|
- **Vacuums**: RV20 Max Plus, RV30 Max
|
|
239
240
|
- **Hubs**: H100, H200
|
|
240
241
|
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
|
|
@@ -196,13 +196,13 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
196
196
|
|
|
197
197
|
### Supported Tapo[^1] devices
|
|
198
198
|
|
|
199
|
-
- **Plugs**: P100, P105, P110, P110M, P115, P125M, P135, TP10, TP15
|
|
199
|
+
- **Plugs**: P100, P105, P110, P110M, P115, P116M, P125M, P135, TP10, TP15
|
|
200
200
|
- **Power Strips**: P210M, P300, P304M, P306, P316M, TP25
|
|
201
201
|
- **Wall Switches**: S210, S220, S500, S500D, S505, S505D, S515D, TS15
|
|
202
202
|
- **Bulbs**: L430C, L430P, L510B, L510E, L530B, L530E, L530EA, L535E, L630
|
|
203
203
|
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
|
|
204
204
|
- **Cameras**: C100, C101, C110, C200, C210, C220, C225, C325WB, C460, C520WS, C720, TC40, TC65, TC70
|
|
205
|
-
- **Doorbells and chimes**: D100C, D130, D230
|
|
205
|
+
- **Doorbells and chimes**: D100C, D130, D230, TD21
|
|
206
206
|
- **Vacuums**: RV20 Max Plus, RV30 Max
|
|
207
207
|
- **Hubs**: H100, H200
|
|
208
208
|
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
#!/usr/bin/env -S uv run --script
|
|
2
|
+
# /// script
|
|
3
|
+
# requires-python = ">=3.11"
|
|
4
|
+
# dependencies = [
|
|
5
|
+
# "git-cliff==2.14.2",
|
|
6
|
+
# "packaging==26.3",
|
|
7
|
+
# ]
|
|
8
|
+
# ///
|
|
9
|
+
"""Release tooling, see RELEASING.md.
|
|
10
|
+
|
|
11
|
+
release.py prepare [--base master|patch] [--push] VERSION [COMMIT...]
|
|
12
|
+
Preview the release PR, or with --push open it.
|
|
13
|
+
|
|
14
|
+
release.py extract CHANGELOG.md VERSION
|
|
15
|
+
Print the notes of one release, used as the GitHub release notes.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from __future__ import annotations
|
|
19
|
+
|
|
20
|
+
import argparse
|
|
21
|
+
import contextlib
|
|
22
|
+
import os
|
|
23
|
+
import re
|
|
24
|
+
import subprocess
|
|
25
|
+
import sys
|
|
26
|
+
import tempfile
|
|
27
|
+
from collections.abc import Iterator
|
|
28
|
+
from pathlib import Path
|
|
29
|
+
|
|
30
|
+
from packaging.version import InvalidVersion, Version
|
|
31
|
+
|
|
32
|
+
REPO = "python-kasa/python-kasa"
|
|
33
|
+
# The remote of python-kasa/python-kasa, override if it is named differently.
|
|
34
|
+
REMOTE = os.environ.get("REMOTE", "upstream")
|
|
35
|
+
|
|
36
|
+
# Sections of CHANGELOG.md start with a "## [version](...)" heading, newest first.
|
|
37
|
+
HEADING = re.compile(r"^## \[(?P<version>[^\]]+)\]", re.MULTILINE)
|
|
38
|
+
RELEASE_VERSION = re.compile(r"\d+(\.\d+){2,3}")
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _parse(version: str) -> Version:
|
|
42
|
+
"""Parse the version of a changelog heading."""
|
|
43
|
+
try:
|
|
44
|
+
return Version(version)
|
|
45
|
+
except InvalidVersion:
|
|
46
|
+
raise ValueError(f"Unsupported version in changelog: {version!r}") from None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def _span(text: str, version: str) -> tuple[int, int] | None:
|
|
50
|
+
"""Return the start and end offset of the section of ``version``."""
|
|
51
|
+
matches = list(HEADING.finditer(text))
|
|
52
|
+
for idx, match in enumerate(matches):
|
|
53
|
+
if match["version"] == version:
|
|
54
|
+
end = matches[idx + 1].start() if idx + 1 < len(matches) else len(text)
|
|
55
|
+
return match.start(), end
|
|
56
|
+
|
|
57
|
+
return None
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def extract(text: str, version: str) -> str:
|
|
61
|
+
"""Return the notes of ``version``, without the heading."""
|
|
62
|
+
span = _span(text, version)
|
|
63
|
+
if span is None:
|
|
64
|
+
raise ValueError(f"No section for {version} found")
|
|
65
|
+
|
|
66
|
+
start = text.index("\n", span[0]) + 1
|
|
67
|
+
return text[start : span[1]].strip() + "\n"
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def insert(text: str, section: str) -> str:
|
|
71
|
+
"""Insert a section above the first section with a lower version."""
|
|
72
|
+
section = section.strip() + "\n\n"
|
|
73
|
+
first = HEADING.match(section)
|
|
74
|
+
if not first:
|
|
75
|
+
raise ValueError("The section needs to start with a '## [version]' heading")
|
|
76
|
+
key = _parse(first["version"])
|
|
77
|
+
for match in HEADING.finditer(text):
|
|
78
|
+
existing = _parse(match["version"])
|
|
79
|
+
if existing == key:
|
|
80
|
+
raise ValueError(f"{first['version']} is already in the changelog")
|
|
81
|
+
if existing < key:
|
|
82
|
+
return text[: match.start()] + section + text[match.start() :]
|
|
83
|
+
raise ValueError(f"No older release than {first['version']} found")
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def run(
|
|
87
|
+
*cmd: str,
|
|
88
|
+
capture: bool = False,
|
|
89
|
+
stdin: str | None = None,
|
|
90
|
+
env: dict[str, str] | None = None,
|
|
91
|
+
cwd: Path | None = None,
|
|
92
|
+
) -> str:
|
|
93
|
+
"""Run a command, echoing it, and raise if it fails."""
|
|
94
|
+
print("+", " ".join(cmd), file=sys.stderr)
|
|
95
|
+
result = subprocess.run( # noqa: S603
|
|
96
|
+
cmd,
|
|
97
|
+
check=True,
|
|
98
|
+
text=True,
|
|
99
|
+
capture_output=capture,
|
|
100
|
+
input=stdin,
|
|
101
|
+
env=env,
|
|
102
|
+
cwd=cwd,
|
|
103
|
+
)
|
|
104
|
+
return result.stdout if capture else ""
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
@contextlib.contextmanager
|
|
108
|
+
def worktree(rev: str) -> Iterator[Path]:
|
|
109
|
+
"""Check out ``rev`` in a temporary worktree, to leave the user's checkout alone."""
|
|
110
|
+
with tempfile.TemporaryDirectory(prefix="release-") as tmp:
|
|
111
|
+
path = Path(tmp) / "checkout"
|
|
112
|
+
run("git", "worktree", "add", "--quiet", "--detach", str(path), rev)
|
|
113
|
+
try:
|
|
114
|
+
yield path
|
|
115
|
+
finally:
|
|
116
|
+
run("git", "worktree", "remove", "--force", str(path))
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def remote_branch_exists(branch: str) -> bool:
|
|
120
|
+
"""Return True if the branch exists on the remote."""
|
|
121
|
+
return bool(run("git", "ls-remote", REMOTE, f"refs/heads/{branch}", capture=True))
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def generate_section(version: str, checkout: Path) -> str:
|
|
125
|
+
"""Generate the changelog section of ``version`` with git-cliff."""
|
|
126
|
+
token = run("gh", "auth", "token", capture=True).strip()
|
|
127
|
+
env = {**os.environ, "GITHUB_TOKEN": token}
|
|
128
|
+
cmd = ["git-cliff", "--github-repo", REPO, "--unreleased", "--strip", "header"]
|
|
129
|
+
cmd += ["--tag", version]
|
|
130
|
+
|
|
131
|
+
return run(*cmd, capture=True, env=env, cwd=checkout)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def update_changelog(checkout: Path, section: str) -> None:
|
|
135
|
+
"""Add the section to CHANGELOG.md of the checkout."""
|
|
136
|
+
path = checkout / "CHANGELOG.md"
|
|
137
|
+
changelog = insert(path.read_text(encoding="utf-8"), section)
|
|
138
|
+
path.write_text(changelog, encoding="utf-8")
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def publish_pr(version: str, base: str, branch: str, section: str) -> None:
|
|
142
|
+
"""Open the release PR."""
|
|
143
|
+
create = ["gh", "pr", "create", "--repo", REPO, "--base", base, "--head", branch]
|
|
144
|
+
create += ["--title", f"Prepare {version}", "--label", "release-prep"]
|
|
145
|
+
run(*create, "--body-file", "-", stdin=section)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def commit_changes(
|
|
149
|
+
checkout: Path, message: str, branch: str, sign: list[str], *, push: bool
|
|
150
|
+
) -> None:
|
|
151
|
+
"""Commit the staged changes, then push them or show what would be pushed."""
|
|
152
|
+
# The hooks of the user's checkout also run in the worktree, CI lints the PR.
|
|
153
|
+
run("git", "commit", "--no-verify", "--message", message, *sign, cwd=checkout)
|
|
154
|
+
if push:
|
|
155
|
+
run("git", "push", REMOTE, f"HEAD:refs/heads/{branch}", cwd=checkout)
|
|
156
|
+
else:
|
|
157
|
+
run("git", "show", "--stat", "--format=%h %s", cwd=checkout)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
def create_branch(
|
|
161
|
+
version: str,
|
|
162
|
+
base: str,
|
|
163
|
+
branch: str,
|
|
164
|
+
commits: list[str],
|
|
165
|
+
sign: list[str],
|
|
166
|
+
*,
|
|
167
|
+
push: bool,
|
|
168
|
+
) -> str:
|
|
169
|
+
"""Create the release branch on the remote and return the changelog section."""
|
|
170
|
+
for commit in commits:
|
|
171
|
+
try:
|
|
172
|
+
run("git", "rev-parse", "--verify", f"{commit}^{{commit}}", capture=True)
|
|
173
|
+
except subprocess.CalledProcessError:
|
|
174
|
+
raise ValueError(f"Unknown commit: {commit}") from None
|
|
175
|
+
|
|
176
|
+
with worktree(f"{REMOTE}/{base}") as checkout:
|
|
177
|
+
if commits:
|
|
178
|
+
try:
|
|
179
|
+
run("git", "cherry-pick", "-x", *sign, *commits, cwd=checkout)
|
|
180
|
+
except subprocess.CalledProcessError:
|
|
181
|
+
# There is nothing to abort if the failure was not a conflict
|
|
182
|
+
with contextlib.suppress(subprocess.CalledProcessError):
|
|
183
|
+
run("git", "cherry-pick", "--abort", cwd=checkout)
|
|
184
|
+
raise ValueError(
|
|
185
|
+
"Cherry-picking failed, if the commits conflict with "
|
|
186
|
+
f"{REMOTE}/{base} cherry-pick them on a branch of your own, "
|
|
187
|
+
"resolve the conflicts and pass the resulting commits instead"
|
|
188
|
+
) from None
|
|
189
|
+
|
|
190
|
+
run("uv", "version", version, "--no-sync", cwd=checkout)
|
|
191
|
+
section = generate_section(version, checkout)
|
|
192
|
+
|
|
193
|
+
update_changelog(checkout, section)
|
|
194
|
+
run("git", "add", "pyproject.toml", "uv.lock", "CHANGELOG.md", cwd=checkout)
|
|
195
|
+
commit_changes(checkout, f"Prepare {version}", branch, sign, push=push)
|
|
196
|
+
|
|
197
|
+
return section
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
def prepare(
|
|
201
|
+
version: str,
|
|
202
|
+
base: str,
|
|
203
|
+
commits: list[str],
|
|
204
|
+
*,
|
|
205
|
+
push: bool = False,
|
|
206
|
+
) -> None:
|
|
207
|
+
"""Create the release PR for ``version``."""
|
|
208
|
+
if commits and base != "patch":
|
|
209
|
+
raise ValueError("Commits can only be cherry-picked with --base patch")
|
|
210
|
+
|
|
211
|
+
# Patch releases require signed commits
|
|
212
|
+
sign = ["-S"] if base == "patch" else []
|
|
213
|
+
branch = f"release/{version}"
|
|
214
|
+
|
|
215
|
+
run("git", "fetch", REMOTE, base, "--tags")
|
|
216
|
+
|
|
217
|
+
# Without the config git-cliff silently falls back to its default template.
|
|
218
|
+
try:
|
|
219
|
+
run("git", "cat-file", "-e", f"{REMOTE}/{base}:cliff.toml", capture=True)
|
|
220
|
+
except subprocess.CalledProcessError:
|
|
221
|
+
raise ValueError(f"cliff.toml is missing from {REMOTE}/{base}") from None
|
|
222
|
+
|
|
223
|
+
if remote_branch_exists(branch):
|
|
224
|
+
raise ValueError(
|
|
225
|
+
f"{branch} exists on {REMOTE}, to prepare the release again "
|
|
226
|
+
"close its PR and delete the branch"
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
section = create_branch(version, base, branch, commits, sign, push=push)
|
|
230
|
+
if not push:
|
|
231
|
+
print(section)
|
|
232
|
+
print(f"Dry run, add --push to push {branch} and open the PR.", file=sys.stderr)
|
|
233
|
+
return
|
|
234
|
+
|
|
235
|
+
publish_pr(version, base, branch, section)
|
|
236
|
+
print("Review CHANGELOG.md in the PR, fix entries and add the summary there.")
|
|
237
|
+
print("Merge the PR once CI passes, a draft release is created automatically.")
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def _release_version(value: str) -> str:
|
|
241
|
+
"""Accept x.y.z and x.y.z.n as release versions."""
|
|
242
|
+
if not RELEASE_VERSION.fullmatch(value) or str(Version(value)) != value:
|
|
243
|
+
raise argparse.ArgumentTypeError(f"invalid version: {value}")
|
|
244
|
+
|
|
245
|
+
return value
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
def main() -> int:
|
|
249
|
+
"""Run the command line interface."""
|
|
250
|
+
parser = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])
|
|
251
|
+
commands = parser.add_subparsers(dest="command", required=True)
|
|
252
|
+
|
|
253
|
+
prepare_parser = commands.add_parser("prepare", help="preview or open the PR")
|
|
254
|
+
prepare_parser.add_argument("--base", choices=["master", "patch"], default="master")
|
|
255
|
+
prepare_parser.add_argument(
|
|
256
|
+
"--push",
|
|
257
|
+
action="store_true",
|
|
258
|
+
help="push the branch and open the PR, by default only a preview",
|
|
259
|
+
)
|
|
260
|
+
prepare_parser.add_argument("version", type=_release_version)
|
|
261
|
+
prepare_parser.add_argument("commits", nargs="*", help="commits to cherry-pick")
|
|
262
|
+
|
|
263
|
+
extract_parser = commands.add_parser("extract", help="print one release section")
|
|
264
|
+
extract_parser.add_argument("file", type=Path)
|
|
265
|
+
extract_parser.add_argument("version")
|
|
266
|
+
|
|
267
|
+
args = parser.parse_args()
|
|
268
|
+
try:
|
|
269
|
+
if args.command == "prepare":
|
|
270
|
+
prepare(args.version, args.base, args.commits, push=args.push)
|
|
271
|
+
else:
|
|
272
|
+
text = args.file.read_text(encoding="utf-8")
|
|
273
|
+
sys.stdout.write(extract(text, args.version))
|
|
274
|
+
except (ValueError, subprocess.CalledProcessError) as ex:
|
|
275
|
+
print(f"error: {ex}", file=sys.stderr)
|
|
276
|
+
# Captured output (git-cliff, gh) is otherwise lost.
|
|
277
|
+
if isinstance(ex, subprocess.CalledProcessError) and ex.stderr:
|
|
278
|
+
print(ex.stderr, file=sys.stderr)
|
|
279
|
+
return 1
|
|
280
|
+
|
|
281
|
+
return 0
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
if __name__ == "__main__":
|
|
285
|
+
sys.exit(main())
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
if "pytest" in sys.modules:
|
|
289
|
+
# Tests, run with: uv run pytest devtools/release.py
|
|
290
|
+
# pytest is only imported when it runs this file, the script does not need it.
|
|
291
|
+
import pytest
|
|
292
|
+
|
|
293
|
+
def _versions(changelog: str) -> list[str]:
|
|
294
|
+
return [match["version"] for match in HEADING.finditer(changelog)]
|
|
295
|
+
|
|
296
|
+
@pytest.fixture
|
|
297
|
+
def changelog() -> str:
|
|
298
|
+
"""Return a changelog with a release, a patch release and a legacy heading."""
|
|
299
|
+
return (
|
|
300
|
+
"# Changelog\n\n"
|
|
301
|
+
"## [0.12.0](https://example.com/0.12.0) (2026-10-12)\n\n- new\n\n"
|
|
302
|
+
"## [0.11.0.1](https://example.com/0.11.0.1) (2026-10-04)\n\n- fix\n\n"
|
|
303
|
+
"## [0.10.2](https://example.com/0.10.2) (2025-02-12)\n\n- old\n\n"
|
|
304
|
+
"## [0.4.0.pre0](https://example.com/0.4.0.pre0) (2020-05-27)\n\n- old\n"
|
|
305
|
+
)
|
|
306
|
+
|
|
307
|
+
@pytest.mark.parametrize(
|
|
308
|
+
("version", "notes"),
|
|
309
|
+
[("0.12.0", "- new\n"), ("0.11.0.1", "- fix\n"), ("0.4.0.pre0", "- old\n")],
|
|
310
|
+
)
|
|
311
|
+
def test_extract(changelog: str, version: str, notes: str) -> None:
|
|
312
|
+
"""The notes are the section without its heading, also for the last one."""
|
|
313
|
+
assert extract(changelog, version) == notes
|
|
314
|
+
|
|
315
|
+
def test_extract_unknown_version(changelog: str) -> None:
|
|
316
|
+
"""A release that is not in the changelog is an error."""
|
|
317
|
+
with pytest.raises(ValueError, match="No section for 0.13.0"):
|
|
318
|
+
extract(changelog, "0.13.0")
|
|
319
|
+
|
|
320
|
+
@pytest.mark.parametrize(
|
|
321
|
+
("version", "expected"),
|
|
322
|
+
[
|
|
323
|
+
("0.13.0", ["0.13.0", "0.12.0", "0.11.0.1", "0.10.2", "0.4.0.pre0"]),
|
|
324
|
+
("0.11.0.2", ["0.12.0", "0.11.0.2", "0.11.0.1", "0.10.2", "0.4.0.pre0"]),
|
|
325
|
+
("0.10.2.1", ["0.12.0", "0.11.0.1", "0.10.2.1", "0.10.2", "0.4.0.pre0"]),
|
|
326
|
+
("0.5.0", ["0.12.0", "0.11.0.1", "0.10.2", "0.5.0", "0.4.0.pre0"]),
|
|
327
|
+
],
|
|
328
|
+
)
|
|
329
|
+
def test_insert_orders_by_version(
|
|
330
|
+
changelog: str, version: str, expected: list[str]
|
|
331
|
+
) -> None:
|
|
332
|
+
"""Sections are inserted by version, a patch release lands below newer ones."""
|
|
333
|
+
section = f"## [{version}](https://example.com/{version})\n\n- entry\n"
|
|
334
|
+
assert _versions(insert(changelog, section)) == expected
|
|
335
|
+
|
|
336
|
+
def test_insert_existing_release(changelog: str) -> None:
|
|
337
|
+
"""Inserting a release that is in the changelog is an error."""
|
|
338
|
+
section = "## [0.11.0.1](https://example.com/0.11.0.1)\n\n- again\n"
|
|
339
|
+
with pytest.raises(ValueError, match="already in the changelog"):
|
|
340
|
+
insert(changelog, section)
|
|
341
|
+
|
|
342
|
+
@pytest.mark.parametrize(
|
|
343
|
+
("section", "message"),
|
|
344
|
+
[
|
|
345
|
+
("- no heading\n", "needs to start with"),
|
|
346
|
+
("## [0.1.0](https://example.com/0.1.0)\n", "No older release"),
|
|
347
|
+
],
|
|
348
|
+
)
|
|
349
|
+
def test_insert_errors(changelog: str, section: str, message: str) -> None:
|
|
350
|
+
"""A section without a heading or older than everything is not inserted."""
|
|
351
|
+
with pytest.raises(ValueError, match=message):
|
|
352
|
+
insert(changelog, section)
|
|
353
|
+
|
|
354
|
+
@pytest.mark.parametrize("value", ["0.12.0", "0.11.0.1"])
|
|
355
|
+
def test_release_version_accepts(value: str) -> None:
|
|
356
|
+
"""Releases and patch releases are accepted."""
|
|
357
|
+
assert _release_version(value) == value
|
|
358
|
+
|
|
359
|
+
@pytest.mark.parametrize(
|
|
360
|
+
"value",
|
|
361
|
+
["0.12", "0.12.0rc1", "0.12.0.dev1", "v0.12.0", "0.12.0.1.1", "0.12.00"],
|
|
362
|
+
)
|
|
363
|
+
def test_release_version_rejects(value: str) -> None:
|
|
364
|
+
"""Other version forms would not match the tag and branch names."""
|
|
365
|
+
with pytest.raises(argparse.ArgumentTypeError):
|
|
366
|
+
_release_version(value)
|
|
367
|
+
|
|
368
|
+
def test_prepare_rejects_cherry_pick_without_patch_base() -> None:
|
|
369
|
+
"""Cherry-picks are rejected before anything is run."""
|
|
370
|
+
with pytest.raises(ValueError, match="only be cherry-picked with --base patch"):
|
|
371
|
+
prepare("0.12.0", "master", ["abc"])
|
|
@@ -34,7 +34,7 @@ except ImportError:
|
|
|
34
34
|
# but only lower case tags to avoid stripping out
|
|
35
35
|
# raw data from the device that is printed from
|
|
36
36
|
# the device state.
|
|
37
|
-
rich_formatting = re.compile(r"\[/?[a-z]+]")
|
|
37
|
+
rich_formatting = re.compile(r"\[/?[a-z]+(?: [a-z]+)*]")
|
|
38
38
|
|
|
39
39
|
def _strip_rich_formatting(echo_func):
|
|
40
40
|
"""Strip rich formatting from messages."""
|
|
@@ -47,7 +47,6 @@ Devices support different functionality that are exposed via
|
|
|
47
47
|
|
|
48
48
|
>>> for module_name in dev.modules:
|
|
49
49
|
... print(module_name)
|
|
50
|
-
homekit
|
|
51
50
|
Energy
|
|
52
51
|
schedule
|
|
53
52
|
usage
|
|
@@ -264,6 +263,10 @@ class Device(ABC):
|
|
|
264
263
|
def modules(self) -> ModuleMapping[Module]:
|
|
265
264
|
"""Return the device modules."""
|
|
266
265
|
|
|
266
|
+
async def supports_module(self, module: ModuleName[Module] | str) -> bool:
|
|
267
|
+
"""Return True if the device supports the module, may query the device."""
|
|
268
|
+
return module in self.modules
|
|
269
|
+
|
|
267
270
|
@property
|
|
268
271
|
@abstractmethod
|
|
269
272
|
def is_on(self) -> bool:
|
|
@@ -142,7 +142,13 @@ def get_device_class_from_sys_info(sysinfo: dict[str, Any]) -> type[IotDevice]:
|
|
|
142
142
|
# Disabled until properly implemented
|
|
143
143
|
# DeviceType.Camera: IotCamera,
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
device_type = IotDevice._get_device_type_from_sys_info(sysinfo)
|
|
146
|
+
if (cls := TYPE_TO_CLASS.get(device_type)) is None:
|
|
147
|
+
raise UnsupportedDeviceError(
|
|
148
|
+
f"Unsupported device type: {device_type}",
|
|
149
|
+
discovery_result=sysinfo,
|
|
150
|
+
)
|
|
151
|
+
return cls
|
|
146
152
|
|
|
147
153
|
|
|
148
154
|
def get_device_class_from_family(
|
|
@@ -19,13 +19,13 @@ import inspect
|
|
|
19
19
|
import logging
|
|
20
20
|
from collections.abc import Callable, Mapping, Sequence
|
|
21
21
|
from datetime import datetime, timedelta, tzinfo
|
|
22
|
-
from typing import TYPE_CHECKING, Any, cast
|
|
22
|
+
from typing import TYPE_CHECKING, Any, ClassVar, cast
|
|
23
23
|
from warnings import warn
|
|
24
24
|
|
|
25
25
|
from ..device import Device, DeviceInfo, WifiNetwork
|
|
26
26
|
from ..device_type import DeviceType
|
|
27
27
|
from ..deviceconfig import DeviceConfig
|
|
28
|
-
from ..exceptions import KasaException, UnsupportedDeviceError
|
|
28
|
+
from ..exceptions import KasaException, TimeoutError, UnsupportedDeviceError
|
|
29
29
|
from ..feature import Feature
|
|
30
30
|
from ..module import Module
|
|
31
31
|
from ..modulemapping import ModuleMapping, ModuleName
|
|
@@ -182,6 +182,13 @@ class IotDevice(Device):
|
|
|
182
182
|
|
|
183
183
|
emeter_type = "emeter"
|
|
184
184
|
|
|
185
|
+
#: Modules that are only queried by supports_module(), not by update().
|
|
186
|
+
_OPTIONAL_MODULES: ClassVar[
|
|
187
|
+
dict[str | ModuleName[Any], tuple[type[IotModule], str]]
|
|
188
|
+
] = {
|
|
189
|
+
Module.IotHomeKit: (HomeKit, "smartlife.iot.homekit"),
|
|
190
|
+
}
|
|
191
|
+
|
|
185
192
|
def __init__(
|
|
186
193
|
self,
|
|
187
194
|
host: str,
|
|
@@ -198,6 +205,7 @@ class IotDevice(Device):
|
|
|
198
205
|
self._children: Mapping[str, IotDevice] = {}
|
|
199
206
|
self._modules: dict[str | ModuleName[Module], IotModule] = {}
|
|
200
207
|
self._on_since: datetime | None = None
|
|
208
|
+
self._optional_module_support: dict[str | ModuleName[Module], bool] = {}
|
|
201
209
|
|
|
202
210
|
@property
|
|
203
211
|
def children(self) -> Sequence[IotDevice]:
|
|
@@ -330,8 +338,6 @@ class IotDevice(Device):
|
|
|
330
338
|
|
|
331
339
|
async def _initialize_modules(self) -> None:
|
|
332
340
|
"""Initialize modules not added in init."""
|
|
333
|
-
self.add_module(Module.IotHomeKit, HomeKit(self, "smartlife.iot.homekit"))
|
|
334
|
-
|
|
335
341
|
if self.has_emeter:
|
|
336
342
|
_LOGGER.debug(
|
|
337
343
|
"The device has emeter, querying its information along sysinfo"
|
|
@@ -444,6 +450,27 @@ class IotDevice(Device):
|
|
|
444
450
|
|
|
445
451
|
self._supported_modules = supported
|
|
446
452
|
|
|
453
|
+
async def supports_module(self, module: ModuleName[Module] | str) -> bool:
|
|
454
|
+
"""Return True if the device supports the module.
|
|
455
|
+
|
|
456
|
+
Optional modules are checked with a separate query, the result is remembered.
|
|
457
|
+
"""
|
|
458
|
+
if (optional := self._OPTIONAL_MODULES.get(module)) is None:
|
|
459
|
+
return await super().supports_module(module)
|
|
460
|
+
|
|
461
|
+
if module not in self._optional_module_support:
|
|
462
|
+
module_class, key = optional
|
|
463
|
+
query = module_class(self, key).query()
|
|
464
|
+
try:
|
|
465
|
+
response = await self.protocol.query(query, retry_count=0)
|
|
466
|
+
except TimeoutError:
|
|
467
|
+
return False
|
|
468
|
+
data = response.get(key)
|
|
469
|
+
self._optional_module_support[module] = (
|
|
470
|
+
isinstance(data, dict) and "err_code" not in data
|
|
471
|
+
)
|
|
472
|
+
return self._optional_module_support[module]
|
|
473
|
+
|
|
447
474
|
def update_from_discover_info(self, info: dict[str, Any]) -> None:
|
|
448
475
|
"""Update state from info from the discover call."""
|
|
449
476
|
self._discovery_info = info
|
|
@@ -29,7 +29,6 @@ from .modules import (
|
|
|
29
29
|
Cloud,
|
|
30
30
|
Countdown,
|
|
31
31
|
Emeter,
|
|
32
|
-
HomeKit,
|
|
33
32
|
Led,
|
|
34
33
|
Schedule,
|
|
35
34
|
Time,
|
|
@@ -122,7 +121,6 @@ class IotStrip(IotDevice):
|
|
|
122
121
|
self.add_module(Module.IotCountdown, Countdown(self, "countdown"))
|
|
123
122
|
self.add_module(Module.Led, Led(self, "system"))
|
|
124
123
|
self.add_module(Module.IotCloud, Cloud(self, "cnCloud"))
|
|
125
|
-
self.add_module(Module.IotHomeKit, HomeKit(self, "smartlife.iot.homekit"))
|
|
126
124
|
if self.has_emeter:
|
|
127
125
|
_LOGGER.debug(
|
|
128
126
|
"The device has emeter, querying its information along sysinfo"
|
|
@@ -103,6 +103,8 @@ class SmartProtocol(BaseProtocol):
|
|
|
103
103
|
|
|
104
104
|
BACKOFF_SECONDS_AFTER_TIMEOUT = 1
|
|
105
105
|
DEFAULT_MULTI_REQUEST_BATCH_SIZE = 5
|
|
106
|
+
# True if the device rejects single requests, so batching is never disabled.
|
|
107
|
+
REQUIRES_MULTIREQUESTS = False
|
|
106
108
|
|
|
107
109
|
def __init__(
|
|
108
110
|
self,
|
|
@@ -248,6 +250,8 @@ class SmartProtocol(BaseProtocol):
|
|
|
248
250
|
try:
|
|
249
251
|
response_step = await self._transport.send(smart_request)
|
|
250
252
|
except TimeoutError as ex:
|
|
253
|
+
if self.REQUIRES_MULTIREQUESTS:
|
|
254
|
+
raise
|
|
251
255
|
# P300 does not respond to some batched requests (e.g. both child
|
|
252
256
|
# list requests together) so disable batching. Batch size is never
|
|
253
257
|
# 1 here as that case sends single requests above.
|
|
@@ -278,6 +282,7 @@ class SmartProtocol(BaseProtocol):
|
|
|
278
282
|
SmartErrorCode.INTERNAL_UNKNOWN_ERROR,
|
|
279
283
|
}
|
|
280
284
|
and self._multi_request_batch_size != 1
|
|
285
|
+
and not self.REQUIRES_MULTIREQUESTS
|
|
281
286
|
):
|
|
282
287
|
self._multi_request_batch_size = 1
|
|
283
288
|
raise _RetryableError(
|
|
@@ -109,9 +109,23 @@ class SmartDevice(Device):
|
|
|
109
109
|
can't be created to avoid spamming the logs on every update.
|
|
110
110
|
"""
|
|
111
111
|
changed = False
|
|
112
|
+
if (
|
|
113
|
+
child_component_list := child_device_components_resp.get(
|
|
114
|
+
"child_component_list"
|
|
115
|
+
)
|
|
116
|
+
) is None:
|
|
117
|
+
# Some hubs intermittently return the component list without the
|
|
118
|
+
# list itself, e.g. an H200 without children. Keep the known children
|
|
119
|
+
# instead of deleting them, the next update will reconcile.
|
|
120
|
+
_LOGGER.debug(
|
|
121
|
+
"No child component list for device %s, response: %s",
|
|
122
|
+
self.host,
|
|
123
|
+
child_device_components_resp,
|
|
124
|
+
)
|
|
125
|
+
return changed
|
|
126
|
+
|
|
112
127
|
smart_children_components = {
|
|
113
|
-
child["device_id"]: child
|
|
114
|
-
for child in child_device_components_resp["child_component_list"]
|
|
128
|
+
child["device_id"]: child for child in child_component_list
|
|
115
129
|
}
|
|
116
130
|
children = self._children
|
|
117
131
|
child_ids: set[str] = set()
|