python-kasa 0.10.0__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.10.0 → python_kasa-0.10.1}/CHANGELOG.md +38 -16
- {python_kasa-0.10.0 → python_kasa-0.10.1}/PKG-INFO +1 -1
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/energy.py +1 -1
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/lighteffect.py +2 -1
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotdimmer.py +2 -1
- {python_kasa-0.10.0 → 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.10.0 → python_kasa-0.10.1}/kasa/iot/modules/lighteffect.py +2 -11
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/module.py +6 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/dustbin.py +10 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/lightstripeffect.py +3 -9
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/smartmodule.py +7 -4
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/alarm.py +13 -6
- {python_kasa-0.10.0 → python_kasa-0.10.1}/pyproject.toml +1 -1
- python_kasa-0.10.1/tests/iot/modules/test_dimmer.py +204 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/test_iotdevice.py +2 -2
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_dustbin.py +19 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_fan.py +1 -1
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/test_smartdevice.py +3 -3
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_common_modules.py +61 -4
- {python_kasa-0.10.0 → python_kasa-0.10.1}/.gitignore +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/LICENSE +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/README.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/README.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/bench/benchmark.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/bench/utils/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/bench/utils/data.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/bench/utils/original.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/create_module_fixtures.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/dump_devinfo.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/generate_supported.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/helpers/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/helpers/smartcamrequests.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/helpers/smartrequests.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/parse_pcap.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/parse_pcap_klap.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/perftest.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/devtools/update_fixtures.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/Makefile +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/make.bat +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/SUPPORTED.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/_static/copybutton.js +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/cli.rst +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/codeinfo.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/conf.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/contribute.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/deprecated.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/featureattributes.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/connect.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/device.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/discover.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/energy.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/feature.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/light.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/module.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides/strip.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/guides.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/index.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/library.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/reference.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/smartbulb.rst +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/smartdevice.rst +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/smartdimmer.rst +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/smartlightstrip.rst +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/smartplug.rst +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/smartstrip.rst +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/topics.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/source/tutorial.md +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/docs/tutorial.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cachedzoneinfo.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/__main__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/common.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/device.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/discover.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/feature.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/hub.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/lazygroup.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/light.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/main.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/schedule.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/time.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/usage.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/vacuum.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/cli/wifi.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/credentials.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/device.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/device_factory.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/device_type.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/deviceconfig.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/discover.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/emeterstatus.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/exceptions.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/feature.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/httpclient.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/alarm.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/childsetup.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/fan.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/led.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/light.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/lightpreset.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/thermostat.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/interfaces/time.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/effects.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotbulb.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotcamera.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotdevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotlightstrip.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotmodule.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotplug.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iotstrip.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/iottimezone.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/ambientlight.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/antitheft.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/cloud.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/countdown.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/emeter.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/led.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/light.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/lightpreset.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/motion.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/rulemodule.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/schedule.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/time.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/iot/modules/usage.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/json.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/modulemapping.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/modulemapping.pyi +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/protocols/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/protocols/iotprotocol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/protocols/protocol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/protocols/smartcamprotocol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/protocols/smartprotocol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/py.typed +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/effects.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/alarm.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/autooff.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/batterysensor.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/brightness.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/childdevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/childlock.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/childprotection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/childsetup.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/clean.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/cleanrecords.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/cloud.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/color.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/colortemperature.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/consumables.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/contactsensor.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/devicemodule.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/energy.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/fan.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/firmware.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/frostprotection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/homekit.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/humiditysensor.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/led.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/light.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/lighteffect.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/lightpreset.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/lighttransition.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/matter.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/mop.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/motionsensor.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/overheatprotection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/powerprotection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/reportmode.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/speaker.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/temperaturecontrol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/temperaturesensor.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/thermostat.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/time.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/triggerlogs.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/modules/waterleaksensor.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/smartchilddevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smart/smartdevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/babycrydetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/battery.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/camera.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/childdevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/childsetup.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/device.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/homekit.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/led.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/lensmask.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/matter.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/motiondetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/pantilt.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/persondetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/petdetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/tamperdetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/modules/time.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/smartcamchild.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/smartcamdevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/smartcam/smartcammodule.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/aestransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/basetransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/klaptransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/linkietransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/sslaestransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/ssltransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/kasa/transports/xortransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/cli/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/cli/test_hub.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/cli/test_vacuum.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/conftest.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/device_fixtures.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/discovery_fixtures.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fakeprotocol_iot.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fakeprotocol_smart.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fakeprotocol_smartcam.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtureinfo.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/EP10(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/EP40(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/ES20M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(UK)_1.0_1.2.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(UK)_4.1_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(US)_1.0_1.2.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS100(US)_2.0_1.5.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS103(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS103(US)_2.1_1.1.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS103(US)_2.1_1.1.4.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS105(US)_1.0_1.5.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS107(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS110(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS110(EU)_4.0_1.0.4.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS110(US)_1.0_1.2.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_2.0_1.5.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_3.0_1.1.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_5.0_1.0.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS200(US)_5.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS210(US)_1.0_1.5.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS210(US)_2.0_1.1.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS220(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS220(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_2.0_1.0.12.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/HS300(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL120(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL120(US)_1.0_1.8.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL125(US)_1.20_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL125(US)_2.0_1.0.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL125(US)_4.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL130(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL135(US)_1.0_1.0.15.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL135(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL420L5(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(UN)_2.0_1.0.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_2.0_1.0.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL430(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL50(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL60(UN)_1.0_1.1.4.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KL60(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP100(US)_3.0_1.0.1.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP105(UK)_1.0_1.0.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP115(EU)_1.0_1.0.16.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP115(US)_1.0_1.0.17.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP115(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP125(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP200(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP303(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP303(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP303(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_2.0_1.0.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP400(US)_3.0_1.0.4.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP401(US)_1.0_1.0.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP405(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KP405(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS200(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.12.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS200M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS220(US)_1.0_1.0.13.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS220M(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS230(US)_1.0_1.0.14.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/KS230(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iot/LB110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/iotcam/EC60(US)_4.0_2.3.22.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/serialization/deviceconfig_camera-aes-https.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/serialization/deviceconfig_plug-klap.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/serialization/deviceconfig_plug-xor.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/D100C(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/EP40M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/HS200(US)_5.26_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KH100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KH100(EU)_1.0_1.5.12.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KP125M(US)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L630(EU)_1.0_1.1.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P100(US)_1.0.0_1.1.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P100(US)_1.0.0_1.3.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P100(US)_1.0.0_1.4.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P110M(AU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P110M(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P115(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P135(US)_1.0_1.2.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P210M(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P304M(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/P306(US)_1.0_1.1.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/RV20 Max Plus(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/RV30 Max(US)_1.0_1.2.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200B(US)_1.0_1.12.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200D(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/S200D(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/S210(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/S220(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T110(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T110(US)_1.0_1.9.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T310(US)_1.0_1.5.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smart/child/T315(US)_1.0_1.8.0.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C100_4.0_1.3.14.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C210_2.0_1.3.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C220(EU)_1.0_1.2.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C225(US)_2.0_1.0.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C325WB(EU)_1.0_1.1.17.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C520WS(US)_1.0_1.2.8.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/C720(US)_1.0_1.2.3.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/D130(US)_1.0_1.1.9.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/H200(EU)_1.0_1.3.2.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/H200(EU)_1.0_1.3.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/H200(US)_1.0_1.3.6.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/TC65_1.0_1.3.9.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/TC70_3.0_1.3.11.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/fixtures/smartcam/child/D230(EU)_1.20_1.1.19.json +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/modules/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/modules/test_ambientlight.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/modules/test_cloud.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/modules/test_emeter.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/modules/test_motion.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/modules/test_schedule.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/modules/test_usage.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/test_iotbulb.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/test_iotdimmer.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/test_iotlightstrip.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/iot/test_wallswitch.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/protocols/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/protocols/test_iotprotocol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/protocols/test_smartprotocol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/features/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/features/test_brightness.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/features/test_colortemp.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_alarm.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_autooff.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_childlock.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_childprotection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_childsetup.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_clean.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_cleanrecords.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_consumables.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_contact.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_energy.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_firmware.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_homekit.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_humidity.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_light_effect.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_light_strip_effect.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_lighttransition.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_matter.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_mop.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_motionsensor.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_powerprotection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_speaker.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_temperature.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_temperaturecontrol.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_triggerlogs.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smart/modules/test_waterleak.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_alarm.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_babycrydetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_battery.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_camera.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_childsetup.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_motiondetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_persondetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_petdetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/modules/test_tamperdetection.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/smartcam/test_smartcamdevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_bulb.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_childdevice.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_cli.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_device.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_device_factory.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_device_type.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_deviceconfig.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_devtools.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_discovery.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_feature.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_httpclient.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_plug.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_readme_examples.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/test_strip.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/transports/__init__.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/transports/test_aestransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/transports/test_klaptransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/transports/test_linkietransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/transports/test_sslaestransport.py +0 -0
- {python_kasa-0.10.0 → python_kasa-0.10.1}/tests/transports/test_ssltransport.py +0 -0
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
3
25
|
## [0.10.0](https://github.com/python-kasa/python-kasa/tree/0.10.0) (2025-01-26)
|
|
4
26
|
|
|
5
27
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.9.1...0.10.0)
|
|
@@ -31,11 +53,7 @@ Many thanks to testers and new contributors - @steveredden, @DawidPietrykowski,
|
|
|
31
53
|
|
|
32
54
|
- Expose more battery sensors for D230 [\#1451](https://github.com/python-kasa/python-kasa/issues/1451)
|
|
33
55
|
- dumping HTTP POST Body for Tapo Vacuum \(RV30 Plus\) [\#937](https://github.com/python-kasa/python-kasa/issues/937)
|
|
34
|
-
- Add common alarm interface [\#1479](https://github.com/python-kasa/python-kasa/pull/1479) (@sdb9696)
|
|
35
|
-
- Add common childsetup interface [\#1470](https://github.com/python-kasa/python-kasa/pull/1470) (@sdb9696)
|
|
36
|
-
- Add childsetup module to smartcam hubs [\#1469](https://github.com/python-kasa/python-kasa/pull/1469) (@sdb9696)
|
|
37
56
|
- Add smartcam pet detection toggle module [\#1465](https://github.com/python-kasa/python-kasa/pull/1465) (@DawidPietrykowski)
|
|
38
|
-
- Only log one warning per unknown clean error code and status [\#1462](https://github.com/python-kasa/python-kasa/pull/1462) (@rytilahti)
|
|
39
57
|
- Add childlock module for vacuums [\#1461](https://github.com/python-kasa/python-kasa/pull/1461) (@rytilahti)
|
|
40
58
|
- Add ultra mode \(fanspeed = 5\) for vacuums [\#1459](https://github.com/python-kasa/python-kasa/pull/1459) (@rytilahti)
|
|
41
59
|
- Add setting to change carpet clean mode [\#1458](https://github.com/python-kasa/python-kasa/pull/1458) (@rytilahti)
|
|
@@ -46,49 +64,53 @@ Many thanks to testers and new contributors - @steveredden, @DawidPietrykowski,
|
|
|
46
64
|
- Add battery module to smartcam devices [\#1452](https://github.com/python-kasa/python-kasa/pull/1452) (@sdb9696)
|
|
47
65
|
- Allow update of camera modules after setting values [\#1450](https://github.com/python-kasa/python-kasa/pull/1450) (@sdb9696)
|
|
48
66
|
- Update hub children on first update and delay subsequent updates [\#1438](https://github.com/python-kasa/python-kasa/pull/1438) (@sdb9696)
|
|
49
|
-
- Add support for doorbells and chimes [\#1435](https://github.com/python-kasa/python-kasa/pull/1435) (@steveredden)
|
|
50
67
|
- Implement vacuum dustbin module \(dust\_bucket\) [\#1423](https://github.com/python-kasa/python-kasa/pull/1423) (@rytilahti)
|
|
51
|
-
- Allow https for klaptransport [\#1415](https://github.com/python-kasa/python-kasa/pull/1415) (@rytilahti)
|
|
52
68
|
- Add smartcam child device support for smartcam hubs [\#1413](https://github.com/python-kasa/python-kasa/pull/1413) (@sdb9696)
|
|
53
|
-
- Add powerprotection module [\#1337](https://github.com/python-kasa/python-kasa/pull/1337) (@rytilahti)
|
|
54
69
|
- Add vacuum speaker controls [\#1332](https://github.com/python-kasa/python-kasa/pull/1332) (@rytilahti)
|
|
55
70
|
- Add consumables module for vacuums [\#1327](https://github.com/python-kasa/python-kasa/pull/1327) (@rytilahti)
|
|
56
71
|
- Add ADC Value to PIR Enabled Switches [\#1263](https://github.com/python-kasa/python-kasa/pull/1263) (@ryenitcher)
|
|
57
72
|
- Add support for cleaning records [\#945](https://github.com/python-kasa/python-kasa/pull/945) (@rytilahti)
|
|
58
73
|
- Initial support for vacuums \(clean module\) [\#944](https://github.com/python-kasa/python-kasa/pull/944) (@rytilahti)
|
|
59
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)
|
|
60
82
|
|
|
61
83
|
**Fixed bugs:**
|
|
62
84
|
|
|
63
85
|
- TP-Link HS300 Wi-Fi Power-Strip - "Parent On/Off" not functioning. [\#637](https://github.com/python-kasa/python-kasa/issues/637)
|
|
64
|
-
- Convert carpet\_clean\_mode to carpet\_boost switch [\#1486](https://github.com/python-kasa/python-kasa/pull/1486) (@rytilahti)
|
|
65
|
-
- Change category for empty dustbin feature from Primary to Config [\#1485](https://github.com/python-kasa/python-kasa/pull/1485) (@rytilahti)
|
|
66
86
|
- Report 0 for instead of None for zero current and voltage [\#1483](https://github.com/python-kasa/python-kasa/pull/1483) (@ryenitcher)
|
|
67
|
-
- Disable iot camera creation until more complete [\#1480](https://github.com/python-kasa/python-kasa/pull/1480) (@sdb9696)
|
|
68
87
|
- ssltransport: use debug logger for sending requests [\#1443](https://github.com/python-kasa/python-kasa/pull/1443) (@rytilahti)
|
|
69
88
|
- Fix discover cli command with host [\#1437](https://github.com/python-kasa/python-kasa/pull/1437) (@sdb9696)
|
|
70
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)
|
|
71
94
|
- Fix iot strip turn on and off from parent [\#639](https://github.com/python-kasa/python-kasa/pull/639) (@Obbay2)
|
|
72
95
|
|
|
73
96
|
**Added support for devices:**
|
|
74
97
|
|
|
75
|
-
- Add D130\(US\) 1.0 1.1.9 fixture [\#1476](https://github.com/python-kasa/python-kasa/pull/1476) (@sdb9696)
|
|
76
|
-
- Add D100C\(US\) 1.0 1.1.3 fixture [\#1475](https://github.com/python-kasa/python-kasa/pull/1475) (@sdb9696)
|
|
77
98
|
- Add C220\(EU\) 1.0 1.2.2 camera fixture [\#1466](https://github.com/python-kasa/python-kasa/pull/1466) (@DawidPietrykowski)
|
|
78
99
|
- Add D230\(EU\) 1.20 1.1.19 fixture [\#1448](https://github.com/python-kasa/python-kasa/pull/1448) (@sdb9696)
|
|
79
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)
|
|
80
103
|
|
|
81
104
|
**Project maintenance:**
|
|
82
105
|
|
|
83
|
-
- Update ruff to 0.9 [\#1482](https://github.com/python-kasa/python-kasa/pull/1482) (@sdb9696)
|
|
84
|
-
- Cancel in progress CI workflows after new pushes [\#1481](https://github.com/python-kasa/python-kasa/pull/1481) (@sdb9696)
|
|
85
|
-
- Update test framework to support smartcam device discovery. [\#1477](https://github.com/python-kasa/python-kasa/pull/1477) (@sdb9696)
|
|
86
|
-
- Add error code 7 for clean module [\#1474](https://github.com/python-kasa/python-kasa/pull/1474) (@rytilahti)
|
|
87
106
|
- Enable CI workflow on PRs to feat/ fix/ and janitor/ [\#1471](https://github.com/python-kasa/python-kasa/pull/1471) (@sdb9696)
|
|
88
107
|
- Add commit-hook to prettify JSON files [\#1455](https://github.com/python-kasa/python-kasa/pull/1455) (@rytilahti)
|
|
89
108
|
- Add required sphinx.configuration [\#1446](https://github.com/python-kasa/python-kasa/pull/1446) (@rytilahti)
|
|
90
109
|
- Add more redactors for smartcams [\#1439](https://github.com/python-kasa/python-kasa/pull/1439) (@sdb9696)
|
|
91
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)
|
|
92
114
|
- Add tests for dump\_devinfo parent/child smartcam fixture generation [\#1428](https://github.com/python-kasa/python-kasa/pull/1428) (@sdb9696)
|
|
93
115
|
- Raise errors on single smartcam child requests [\#1427](https://github.com/python-kasa/python-kasa/pull/1427) (@sdb9696)
|
|
94
116
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.10.
|
|
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
|
|
@@ -28,7 +28,7 @@ class Energy(Module, ABC):
|
|
|
28
28
|
|
|
29
29
|
_supported: ModuleFeature = ModuleFeature(0)
|
|
30
30
|
|
|
31
|
-
def supports(self, module_feature: ModuleFeature) -> bool:
|
|
31
|
+
def supports(self, module_feature: Energy.ModuleFeature) -> bool:
|
|
32
32
|
"""Return True if module supports the feature."""
|
|
33
33
|
return module_feature in self._supported
|
|
34
34
|
|
|
@@ -51,6 +51,7 @@ class LightEffect(Module, ABC):
|
|
|
51
51
|
"""Interface to represent a light effect module."""
|
|
52
52
|
|
|
53
53
|
LIGHT_EFFECTS_OFF = "Off"
|
|
54
|
+
LIGHT_EFFECTS_UNNAMED_CUSTOM = "Custom"
|
|
54
55
|
|
|
55
56
|
def _initialize_features(self) -> None:
|
|
56
57
|
"""Initialize features."""
|
|
@@ -77,7 +78,7 @@ class LightEffect(Module, ABC):
|
|
|
77
78
|
@property
|
|
78
79
|
@abstractmethod
|
|
79
80
|
def effect(self) -> str:
|
|
80
|
-
"""Return effect
|
|
81
|
+
"""Return effect name."""
|
|
81
82
|
|
|
82
83
|
@property
|
|
83
84
|
@abstractmethod
|
|
@@ -11,7 +11,7 @@ from ..module import Module
|
|
|
11
11
|
from ..protocols import BaseProtocol
|
|
12
12
|
from .iotdevice import KasaException, requires_update
|
|
13
13
|
from .iotplug import IotPlug
|
|
14
|
-
from .modules import AmbientLight, Light, Motion
|
|
14
|
+
from .modules import AmbientLight, Dimmer, Light, Motion
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class ButtonAction(Enum):
|
|
@@ -87,6 +87,7 @@ class IotDimmer(IotPlug):
|
|
|
87
87
|
# TODO: need to be figured out what's the best approach to detect support
|
|
88
88
|
self.add_module(Module.IotMotion, Motion(self, "smartlife.iot.PIR"))
|
|
89
89
|
self.add_module(Module.IotAmbientLight, AmbientLight(self, "smartlife.iot.LAS"))
|
|
90
|
+
self.add_module(Module.IotDimmer, Dimmer(self, "smartlife.iot.dimmer"))
|
|
90
91
|
self.add_module(Module.Light, Light(self, "light"))
|
|
91
92
|
|
|
92
93
|
@property # type: ignore
|
|
@@ -4,6 +4,7 @@ from .ambientlight import AmbientLight
|
|
|
4
4
|
from .antitheft import Antitheft
|
|
5
5
|
from .cloud import Cloud
|
|
6
6
|
from .countdown import Countdown
|
|
7
|
+
from .dimmer import Dimmer
|
|
7
8
|
from .emeter import Emeter
|
|
8
9
|
from .led import Led
|
|
9
10
|
from .light import Light
|
|
@@ -20,6 +21,7 @@ __all__ = [
|
|
|
20
21
|
"Antitheft",
|
|
21
22
|
"Cloud",
|
|
22
23
|
"Countdown",
|
|
24
|
+
"Dimmer",
|
|
23
25
|
"Emeter",
|
|
24
26
|
"Led",
|
|
25
27
|
"Light",
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"""Implementation of the dimmer config module found in dimmers."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
from datetime import timedelta
|
|
7
|
+
from typing import Any, Final, cast
|
|
8
|
+
|
|
9
|
+
from ...exceptions import KasaException
|
|
10
|
+
from ...feature import Feature
|
|
11
|
+
from ..iotmodule import IotModule, merge
|
|
12
|
+
|
|
13
|
+
_LOGGER = logging.getLogger(__name__)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _td_to_ms(td: timedelta) -> int:
|
|
17
|
+
"""
|
|
18
|
+
Convert timedelta to integer milliseconds.
|
|
19
|
+
|
|
20
|
+
Uses default float to integer rounding.
|
|
21
|
+
"""
|
|
22
|
+
return int(td / timedelta(milliseconds=1))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class Dimmer(IotModule):
|
|
26
|
+
"""Implements the dimmer config module."""
|
|
27
|
+
|
|
28
|
+
THRESHOLD_ABS_MIN: Final[int] = 0
|
|
29
|
+
# Strange value, but verified against hardware (KS220).
|
|
30
|
+
THRESHOLD_ABS_MAX: Final[int] = 51
|
|
31
|
+
FADE_TIME_ABS_MIN: Final[timedelta] = timedelta(seconds=0)
|
|
32
|
+
# Arbitrary, but set low intending GENTLE FADE for longer fades.
|
|
33
|
+
FADE_TIME_ABS_MAX: Final[timedelta] = timedelta(seconds=10)
|
|
34
|
+
GENTLE_TIME_ABS_MIN: Final[timedelta] = timedelta(seconds=0)
|
|
35
|
+
# Arbitrary, but reasonable default.
|
|
36
|
+
GENTLE_TIME_ABS_MAX: Final[timedelta] = timedelta(seconds=120)
|
|
37
|
+
# Verified against KS220.
|
|
38
|
+
RAMP_RATE_ABS_MIN: Final[int] = 10
|
|
39
|
+
# Verified against KS220.
|
|
40
|
+
RAMP_RATE_ABS_MAX: Final[int] = 50
|
|
41
|
+
|
|
42
|
+
def _initialize_features(self) -> None:
|
|
43
|
+
"""Initialize features after the initial update."""
|
|
44
|
+
self._add_feature(
|
|
45
|
+
Feature(
|
|
46
|
+
device=self._device,
|
|
47
|
+
container=self,
|
|
48
|
+
id="dimmer_threshold_min",
|
|
49
|
+
name="Minimum dimming level",
|
|
50
|
+
icon="mdi:lightbulb-on-20",
|
|
51
|
+
attribute_getter="threshold_min",
|
|
52
|
+
attribute_setter="set_threshold_min",
|
|
53
|
+
range_getter=lambda: (self.THRESHOLD_ABS_MIN, self.THRESHOLD_ABS_MAX),
|
|
54
|
+
type=Feature.Type.Number,
|
|
55
|
+
category=Feature.Category.Config,
|
|
56
|
+
)
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
self._add_feature(
|
|
60
|
+
Feature(
|
|
61
|
+
device=self._device,
|
|
62
|
+
container=self,
|
|
63
|
+
id="dimmer_fade_off_time",
|
|
64
|
+
name="Dimmer fade off time",
|
|
65
|
+
icon="mdi:clock-in",
|
|
66
|
+
attribute_getter="fade_off_time",
|
|
67
|
+
attribute_setter="set_fade_off_time",
|
|
68
|
+
range_getter=lambda: (
|
|
69
|
+
_td_to_ms(self.FADE_TIME_ABS_MIN),
|
|
70
|
+
_td_to_ms(self.FADE_TIME_ABS_MAX),
|
|
71
|
+
),
|
|
72
|
+
type=Feature.Type.Number,
|
|
73
|
+
category=Feature.Category.Config,
|
|
74
|
+
)
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
self._add_feature(
|
|
78
|
+
Feature(
|
|
79
|
+
device=self._device,
|
|
80
|
+
container=self,
|
|
81
|
+
id="dimmer_fade_on_time",
|
|
82
|
+
name="Dimmer fade on time",
|
|
83
|
+
icon="mdi:clock-out",
|
|
84
|
+
attribute_getter="fade_on_time",
|
|
85
|
+
attribute_setter="set_fade_on_time",
|
|
86
|
+
range_getter=lambda: (
|
|
87
|
+
_td_to_ms(self.FADE_TIME_ABS_MIN),
|
|
88
|
+
_td_to_ms(self.FADE_TIME_ABS_MAX),
|
|
89
|
+
),
|
|
90
|
+
type=Feature.Type.Number,
|
|
91
|
+
category=Feature.Category.Config,
|
|
92
|
+
)
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
self._add_feature(
|
|
96
|
+
Feature(
|
|
97
|
+
device=self._device,
|
|
98
|
+
container=self,
|
|
99
|
+
id="dimmer_gentle_off_time",
|
|
100
|
+
name="Dimmer gentle off time",
|
|
101
|
+
icon="mdi:clock-in",
|
|
102
|
+
attribute_getter="gentle_off_time",
|
|
103
|
+
attribute_setter="set_gentle_off_time",
|
|
104
|
+
range_getter=lambda: (
|
|
105
|
+
_td_to_ms(self.GENTLE_TIME_ABS_MIN),
|
|
106
|
+
_td_to_ms(self.GENTLE_TIME_ABS_MAX),
|
|
107
|
+
),
|
|
108
|
+
type=Feature.Type.Number,
|
|
109
|
+
category=Feature.Category.Config,
|
|
110
|
+
)
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
self._add_feature(
|
|
114
|
+
Feature(
|
|
115
|
+
device=self._device,
|
|
116
|
+
container=self,
|
|
117
|
+
id="dimmer_gentle_on_time",
|
|
118
|
+
name="Dimmer gentle on time",
|
|
119
|
+
icon="mdi:clock-out",
|
|
120
|
+
attribute_getter="gentle_on_time",
|
|
121
|
+
attribute_setter="set_gentle_on_time",
|
|
122
|
+
range_getter=lambda: (
|
|
123
|
+
_td_to_ms(self.GENTLE_TIME_ABS_MIN),
|
|
124
|
+
_td_to_ms(self.GENTLE_TIME_ABS_MAX),
|
|
125
|
+
),
|
|
126
|
+
type=Feature.Type.Number,
|
|
127
|
+
category=Feature.Category.Config,
|
|
128
|
+
)
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
self._add_feature(
|
|
132
|
+
Feature(
|
|
133
|
+
device=self._device,
|
|
134
|
+
container=self,
|
|
135
|
+
id="dimmer_ramp_rate",
|
|
136
|
+
name="Dimmer ramp rate",
|
|
137
|
+
icon="mdi:clock-fast",
|
|
138
|
+
attribute_getter="ramp_rate",
|
|
139
|
+
attribute_setter="set_ramp_rate",
|
|
140
|
+
range_getter=lambda: (self.RAMP_RATE_ABS_MIN, self.RAMP_RATE_ABS_MAX),
|
|
141
|
+
type=Feature.Type.Number,
|
|
142
|
+
category=Feature.Category.Config,
|
|
143
|
+
)
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
def query(self) -> dict:
|
|
147
|
+
"""Request Dimming configuration."""
|
|
148
|
+
req = merge(
|
|
149
|
+
self.query_for_command("get_dimmer_parameters"),
|
|
150
|
+
self.query_for_command("get_default_behavior"),
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
return req
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def config(self) -> dict[str, Any]:
|
|
157
|
+
"""Return current configuration."""
|
|
158
|
+
return self.data["get_dimmer_parameters"]
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def threshold_min(self) -> int:
|
|
162
|
+
"""Return the minimum dimming level for this dimmer."""
|
|
163
|
+
return self.config["minThreshold"]
|
|
164
|
+
|
|
165
|
+
async def set_threshold_min(self, min: int) -> dict:
|
|
166
|
+
"""Set the minimum dimming level for this dimmer.
|
|
167
|
+
|
|
168
|
+
The value will depend on the luminaries connected to the dimmer.
|
|
169
|
+
|
|
170
|
+
:param min: The minimum dimming level, in the range 0-51.
|
|
171
|
+
"""
|
|
172
|
+
if min < self.THRESHOLD_ABS_MIN or min > self.THRESHOLD_ABS_MAX:
|
|
173
|
+
raise KasaException(
|
|
174
|
+
"Minimum dimming threshold is outside the supported range: "
|
|
175
|
+
f"{self.THRESHOLD_ABS_MIN}-{self.THRESHOLD_ABS_MAX}"
|
|
176
|
+
)
|
|
177
|
+
return await self.call("calibrate_brightness", {"minThreshold": min})
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def fade_off_time(self) -> timedelta:
|
|
181
|
+
"""Return the fade off animation duration."""
|
|
182
|
+
return timedelta(milliseconds=cast(int, self.config["fadeOffTime"]))
|
|
183
|
+
|
|
184
|
+
async def set_fade_off_time(self, time: int | timedelta) -> dict:
|
|
185
|
+
"""Set the duration of the fade off animation.
|
|
186
|
+
|
|
187
|
+
:param time: The animation duration, in ms.
|
|
188
|
+
"""
|
|
189
|
+
if isinstance(time, int):
|
|
190
|
+
time = timedelta(milliseconds=time)
|
|
191
|
+
if time < self.FADE_TIME_ABS_MIN or time > self.FADE_TIME_ABS_MAX:
|
|
192
|
+
raise KasaException(
|
|
193
|
+
"Fade time is outside the bounds of the supported range:"
|
|
194
|
+
f"{self.FADE_TIME_ABS_MIN}-{self.FADE_TIME_ABS_MAX}"
|
|
195
|
+
)
|
|
196
|
+
return await self.call("set_fade_off_time", {"fadeTime": _td_to_ms(time)})
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
def fade_on_time(self) -> timedelta:
|
|
200
|
+
"""Return the fade on animation duration."""
|
|
201
|
+
return timedelta(milliseconds=cast(int, self.config["fadeOnTime"]))
|
|
202
|
+
|
|
203
|
+
async def set_fade_on_time(self, time: int | timedelta) -> dict:
|
|
204
|
+
"""Set the duration of the fade on animation.
|
|
205
|
+
|
|
206
|
+
:param time: The animation duration, in ms.
|
|
207
|
+
"""
|
|
208
|
+
if isinstance(time, int):
|
|
209
|
+
time = timedelta(milliseconds=time)
|
|
210
|
+
if time < self.FADE_TIME_ABS_MIN or time > self.FADE_TIME_ABS_MAX:
|
|
211
|
+
raise KasaException(
|
|
212
|
+
"Fade time is outside the bounds of the supported range:"
|
|
213
|
+
f"{self.FADE_TIME_ABS_MIN}-{self.FADE_TIME_ABS_MAX}"
|
|
214
|
+
)
|
|
215
|
+
return await self.call("set_fade_on_time", {"fadeTime": _td_to_ms(time)})
|
|
216
|
+
|
|
217
|
+
@property
|
|
218
|
+
def gentle_off_time(self) -> timedelta:
|
|
219
|
+
"""Return the gentle fade off animation duration."""
|
|
220
|
+
return timedelta(milliseconds=cast(int, self.config["gentleOffTime"]))
|
|
221
|
+
|
|
222
|
+
async def set_gentle_off_time(self, time: int | timedelta) -> dict:
|
|
223
|
+
"""Set the duration of the gentle fade off animation.
|
|
224
|
+
|
|
225
|
+
:param time: The animation duration, in ms.
|
|
226
|
+
"""
|
|
227
|
+
if isinstance(time, int):
|
|
228
|
+
time = timedelta(milliseconds=time)
|
|
229
|
+
if time < self.GENTLE_TIME_ABS_MIN or time > self.GENTLE_TIME_ABS_MAX:
|
|
230
|
+
raise KasaException(
|
|
231
|
+
"Gentle off time is outside the bounds of the supported range: "
|
|
232
|
+
f"{self.GENTLE_TIME_ABS_MIN}-{self.GENTLE_TIME_ABS_MAX}."
|
|
233
|
+
)
|
|
234
|
+
return await self.call("set_gentle_off_time", {"duration": _td_to_ms(time)})
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
def gentle_on_time(self) -> timedelta:
|
|
238
|
+
"""Return the gentle fade on animation duration."""
|
|
239
|
+
return timedelta(milliseconds=cast(int, self.config["gentleOnTime"]))
|
|
240
|
+
|
|
241
|
+
async def set_gentle_on_time(self, time: int | timedelta) -> dict:
|
|
242
|
+
"""Set the duration of the gentle fade on animation.
|
|
243
|
+
|
|
244
|
+
:param time: The animation duration, in ms.
|
|
245
|
+
"""
|
|
246
|
+
if isinstance(time, int):
|
|
247
|
+
time = timedelta(milliseconds=time)
|
|
248
|
+
if time < self.GENTLE_TIME_ABS_MIN or time > self.GENTLE_TIME_ABS_MAX:
|
|
249
|
+
raise KasaException(
|
|
250
|
+
"Gentle off time is outside the bounds of the supported range: "
|
|
251
|
+
f"{self.GENTLE_TIME_ABS_MIN}-{self.GENTLE_TIME_ABS_MAX}."
|
|
252
|
+
)
|
|
253
|
+
return await self.call("set_gentle_on_time", {"duration": _td_to_ms(time)})
|
|
254
|
+
|
|
255
|
+
@property
|
|
256
|
+
def ramp_rate(self) -> int:
|
|
257
|
+
"""Return the rate that the dimmer buttons increment the dimmer level."""
|
|
258
|
+
return self.config["rampRate"]
|
|
259
|
+
|
|
260
|
+
async def set_ramp_rate(self, rate: int) -> dict:
|
|
261
|
+
"""Set how quickly to ramp the dimming level when using the dimmer buttons.
|
|
262
|
+
|
|
263
|
+
:param rate: The rate to increment the dimming level with each press.
|
|
264
|
+
"""
|
|
265
|
+
if rate < self.RAMP_RATE_ABS_MIN or rate > self.RAMP_RATE_ABS_MAX:
|
|
266
|
+
raise KasaException(
|
|
267
|
+
"Gentle off time is outside the bounds of the supported range:"
|
|
268
|
+
f"{self.RAMP_RATE_ABS_MIN}-{self.RAMP_RATE_ABS_MAX}"
|
|
269
|
+
)
|
|
270
|
+
return await self.call("set_button_ramp_rate", {"rampRate": rate})
|
|
@@ -12,20 +12,11 @@ class LightEffect(IotModule, LightEffectInterface):
|
|
|
12
12
|
|
|
13
13
|
@property
|
|
14
14
|
def effect(self) -> str:
|
|
15
|
-
"""Return effect
|
|
16
|
-
|
|
17
|
-
Example:
|
|
18
|
-
{'brightness': 50,
|
|
19
|
-
'custom': 0,
|
|
20
|
-
'enable': 0,
|
|
21
|
-
'id': '',
|
|
22
|
-
'name': ''}
|
|
23
|
-
"""
|
|
15
|
+
"""Return effect name."""
|
|
24
16
|
eff = self.data["lighting_effect_state"]
|
|
25
17
|
name = eff["name"]
|
|
26
18
|
if eff["enable"]:
|
|
27
|
-
return name
|
|
28
|
-
|
|
19
|
+
return name or self.LIGHT_EFFECTS_UNNAMED_CUSTOM
|
|
29
20
|
return self.LIGHT_EFFECTS_OFF
|
|
30
21
|
|
|
31
22
|
@property
|
|
@@ -111,6 +111,7 @@ class Module(ABC):
|
|
|
111
111
|
IotAmbientLight: Final[ModuleName[iot.AmbientLight]] = ModuleName("ambient")
|
|
112
112
|
IotAntitheft: Final[ModuleName[iot.Antitheft]] = ModuleName("anti_theft")
|
|
113
113
|
IotCountdown: Final[ModuleName[iot.Countdown]] = ModuleName("countdown")
|
|
114
|
+
IotDimmer: Final[ModuleName[iot.Dimmer]] = ModuleName("dimmer")
|
|
114
115
|
IotMotion: Final[ModuleName[iot.Motion]] = ModuleName("motion")
|
|
115
116
|
IotSchedule: Final[ModuleName[iot.Schedule]] = ModuleName("schedule")
|
|
116
117
|
IotUsage: Final[ModuleName[iot.Usage]] = ModuleName("usage")
|
|
@@ -182,6 +183,11 @@ class Module(ABC):
|
|
|
182
183
|
self._module = module
|
|
183
184
|
self._module_features: dict[str, Feature] = {}
|
|
184
185
|
|
|
186
|
+
@property
|
|
187
|
+
def device(self) -> Device:
|
|
188
|
+
"""Return the device exposing the module."""
|
|
189
|
+
return self._device
|
|
190
|
+
|
|
185
191
|
@property
|
|
186
192
|
def _all_features(self) -> dict[str, Feature]:
|
|
187
193
|
"""Get the features for this module and any sub modules."""
|
|
@@ -19,6 +19,8 @@ class Mode(IntEnum):
|
|
|
19
19
|
Balanced = 2
|
|
20
20
|
Max = 3
|
|
21
21
|
|
|
22
|
+
Off = -1_000
|
|
23
|
+
|
|
22
24
|
|
|
23
25
|
class Dustbin(SmartModule):
|
|
24
26
|
"""Implementation of vacuum dustbin."""
|
|
@@ -91,6 +93,8 @@ class Dustbin(SmartModule):
|
|
|
91
93
|
@property
|
|
92
94
|
def mode(self) -> str:
|
|
93
95
|
"""Return auto-emptying mode."""
|
|
96
|
+
if self.auto_collection is False:
|
|
97
|
+
return Mode.Off.name
|
|
94
98
|
return Mode(self._settings["dust_collection_mode"]).name
|
|
95
99
|
|
|
96
100
|
async def set_mode(self, mode: str) -> dict:
|
|
@@ -101,8 +105,14 @@ class Dustbin(SmartModule):
|
|
|
101
105
|
"Invalid auto/emptying mode speed %s, available %s", mode, name_to_value
|
|
102
106
|
)
|
|
103
107
|
|
|
108
|
+
if mode == Mode.Off.name:
|
|
109
|
+
return await self.set_auto_collection(False)
|
|
110
|
+
|
|
111
|
+
# Make a copy just in case, even when we are overriding both settings
|
|
104
112
|
settings = self._settings.copy()
|
|
113
|
+
settings["auto_dust_collection"] = True
|
|
105
114
|
settings["dust_collection_mode"] = name_to_value[mode]
|
|
115
|
+
|
|
106
116
|
return await self.call("setDustCollectionInfo", settings)
|
|
107
117
|
|
|
108
118
|
@property
|
|
@@ -37,20 +37,14 @@ class LightStripEffect(SmartModule, SmartLightEffect):
|
|
|
37
37
|
|
|
38
38
|
@property
|
|
39
39
|
def effect(self) -> str:
|
|
40
|
-
"""Return effect
|
|
41
|
-
|
|
42
|
-
Example:
|
|
43
|
-
{'brightness': 50,
|
|
44
|
-
'custom': 0,
|
|
45
|
-
'enable': 0,
|
|
46
|
-
'id': '',
|
|
47
|
-
'name': ''}
|
|
48
|
-
"""
|
|
40
|
+
"""Return effect name."""
|
|
49
41
|
eff = self.data["lighting_effect"]
|
|
50
42
|
name = eff["name"]
|
|
51
43
|
# When devices are unpaired effect name is softAP which is not in our list
|
|
52
44
|
if eff["enable"] and name in self._effect_list:
|
|
53
45
|
return name
|
|
46
|
+
if eff["enable"] and eff["custom"]:
|
|
47
|
+
return name or self.LIGHT_EFFECTS_UNNAMED_CUSTOM
|
|
54
48
|
return self.LIGHT_EFFECTS_OFF
|
|
55
49
|
|
|
56
50
|
@property
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import logging
|
|
6
|
-
from collections.abc import
|
|
6
|
+
from collections.abc import Callable, Coroutine
|
|
7
|
+
from functools import wraps
|
|
7
8
|
from typing import TYPE_CHECKING, Any, Concatenate, ParamSpec, TypeVar
|
|
8
9
|
|
|
9
10
|
from ..exceptions import DeviceError, KasaException, SmartErrorCode
|
|
@@ -20,15 +21,16 @@ _R = TypeVar("_R")
|
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
def allow_update_after(
|
|
23
|
-
func: Callable[Concatenate[_T, _P],
|
|
24
|
-
) -> Callable[Concatenate[_T, _P], Coroutine[Any, Any,
|
|
24
|
+
func: Callable[Concatenate[_T, _P], Coroutine[Any, Any, _R]],
|
|
25
|
+
) -> Callable[Concatenate[_T, _P], Coroutine[Any, Any, _R]]:
|
|
25
26
|
"""Define a wrapper to set _last_update_time to None.
|
|
26
27
|
|
|
27
28
|
This will ensure that a module is updated in the next update cycle after
|
|
28
29
|
a value has been changed.
|
|
29
30
|
"""
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
@wraps(func)
|
|
33
|
+
async def _async_wrap(self: _T, *args: _P.args, **kwargs: _P.kwargs) -> _R:
|
|
32
34
|
try:
|
|
33
35
|
return await func(self, *args, **kwargs)
|
|
34
36
|
finally:
|
|
@@ -40,6 +42,7 @@ def allow_update_after(
|
|
|
40
42
|
def raise_if_update_error(func: Callable[[_T], _R]) -> Callable[[_T], _R]:
|
|
41
43
|
"""Define a wrapper to raise an error if the last module update was an error."""
|
|
42
44
|
|
|
45
|
+
@wraps(func)
|
|
43
46
|
def _wrap(self: _T) -> _R:
|
|
44
47
|
if err := self._last_update_error:
|
|
45
48
|
raise err
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Annotated
|
|
6
|
+
|
|
5
7
|
from ...feature import Feature
|
|
6
8
|
from ...interfaces import Alarm as AlarmInterface
|
|
9
|
+
from ...module import FeatureAttribute
|
|
7
10
|
from ...smart.smartmodule import allow_update_after
|
|
8
11
|
from ..smartcammodule import SmartCamModule
|
|
9
12
|
|
|
@@ -105,12 +108,12 @@ class Alarm(SmartCamModule, AlarmInterface):
|
|
|
105
108
|
)
|
|
106
109
|
|
|
107
110
|
@property
|
|
108
|
-
def alarm_sound(self) -> str:
|
|
111
|
+
def alarm_sound(self) -> Annotated[str, FeatureAttribute()]:
|
|
109
112
|
"""Return current alarm sound."""
|
|
110
113
|
return self.data["getSirenConfig"]["siren_type"]
|
|
111
114
|
|
|
112
115
|
@allow_update_after
|
|
113
|
-
async def set_alarm_sound(self, sound: str) -> dict:
|
|
116
|
+
async def set_alarm_sound(self, sound: str) -> Annotated[dict, FeatureAttribute()]:
|
|
114
117
|
"""Set alarm sound.
|
|
115
118
|
|
|
116
119
|
See *alarm_sounds* for list of available sounds.
|
|
@@ -124,7 +127,7 @@ class Alarm(SmartCamModule, AlarmInterface):
|
|
|
124
127
|
return self.data["getSirenTypeList"]["siren_type_list"]
|
|
125
128
|
|
|
126
129
|
@property
|
|
127
|
-
def alarm_volume(self) -> int:
|
|
130
|
+
def alarm_volume(self) -> Annotated[int, FeatureAttribute()]:
|
|
128
131
|
"""Return alarm volume.
|
|
129
132
|
|
|
130
133
|
Unlike duration the device expects/returns a string for volume.
|
|
@@ -132,18 +135,22 @@ class Alarm(SmartCamModule, AlarmInterface):
|
|
|
132
135
|
return int(self.data["getSirenConfig"]["volume"])
|
|
133
136
|
|
|
134
137
|
@allow_update_after
|
|
135
|
-
async def set_alarm_volume(
|
|
138
|
+
async def set_alarm_volume(
|
|
139
|
+
self, volume: int
|
|
140
|
+
) -> Annotated[dict, FeatureAttribute()]:
|
|
136
141
|
"""Set alarm volume."""
|
|
137
142
|
config = self._validate_and_get_config(volume=volume)
|
|
138
143
|
return await self.call("setSirenConfig", {"siren": config})
|
|
139
144
|
|
|
140
145
|
@property
|
|
141
|
-
def alarm_duration(self) -> int:
|
|
146
|
+
def alarm_duration(self) -> Annotated[int, FeatureAttribute()]:
|
|
142
147
|
"""Return alarm duration."""
|
|
143
148
|
return self.data["getSirenConfig"]["duration"]
|
|
144
149
|
|
|
145
150
|
@allow_update_after
|
|
146
|
-
async def set_alarm_duration(
|
|
151
|
+
async def set_alarm_duration(
|
|
152
|
+
self, duration: int
|
|
153
|
+
) -> Annotated[dict, FeatureAttribute()]:
|
|
147
154
|
"""Set alarm volume."""
|
|
148
155
|
config = self._validate_and_get_config(duration=duration)
|
|
149
156
|
return await self.call("setSirenConfig", {"siren": config})
|