python-kasa 0.7.7__tar.gz → 0.8.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.7.7 → python_kasa-0.8.1}/CHANGELOG.md +132 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/PKG-INFO +19 -23
- {python_kasa-0.7.7 → python_kasa-0.8.1}/README.md +15 -14
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/bench/utils/original.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/dump_devinfo.py +79 -70
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/generate_supported.py +38 -68
- python_kasa-0.7.7/devtools/helpers/smartcamerarequests.py → python_kasa-0.8.1/devtools/helpers/smartcamrequests.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/helpers/smartrequests.py +2 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/parse_pcap.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/parse_pcap_klap.py +2 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/conf.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/contribute.md +4 -4
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/reference.md +8 -8
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/topics.md +16 -16
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/__init__.py +30 -29
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cachedzoneinfo.py +0 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/common.py +16 -8
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/device.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/discover.py +50 -16
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/feature.py +10 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/lazygroup.py +5 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/light.py +37 -20
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/main.py +19 -36
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/schedule.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/time.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/usage.py +21 -42
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/wifi.py +1 -1
- python_kasa-0.8.1/kasa/credentials.py +30 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/device.py +83 -54
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/device_factory.py +22 -50
- python_kasa-0.8.1/kasa/deviceconfig.py +191 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/discover.py +115 -83
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/emeterstatus.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/exceptions.py +6 -6
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/feature.py +20 -14
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/httpclient.py +5 -4
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/__init__.py +3 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/energy.py +18 -11
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/fan.py +6 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/led.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/light.py +9 -9
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/lighteffect.py +4 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/lightpreset.py +3 -3
- python_kasa-0.8.1/kasa/interfaces/thermostat.py +65 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iotbulb.py +35 -33
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iotdevice.py +117 -27
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iotdimmer.py +17 -13
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iotlightstrip.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iotmodule.py +13 -5
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iotplug.py +5 -4
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iotstrip.py +34 -21
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/iottimezone.py +0 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/ambientlight.py +5 -5
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/cloud.py +23 -18
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/emeter.py +7 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/led.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/light.py +4 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/lighteffect.py +5 -5
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/lightpreset.py +30 -20
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/motion.py +5 -5
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/rulemodule.py +20 -19
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/time.py +6 -6
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/usage.py +18 -14
- python_kasa-0.8.1/kasa/json.py +34 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/module.py +101 -12
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/modulemapping.pyi +1 -3
- python_kasa-0.8.1/kasa/protocols/__init__.py +12 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1/kasa/protocols}/iotprotocol.py +10 -6
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1/kasa/protocols}/protocol.py +9 -65
- python_kasa-0.7.7/kasa/experimental/smartcameraprotocol.py → python_kasa-0.8.1/kasa/protocols/smartcamprotocol.py +12 -10
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1/kasa/protocols}/smartprotocol.py +18 -11
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/effects.py +3 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/__init__.py +2 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/alarm.py +3 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/autooff.py +4 -4
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/batterysensor.py +3 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/brightness.py +6 -4
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/childprotection.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/cloud.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/color.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/colortemperature.py +3 -3
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/contactsensor.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/devicemodule.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/energy.py +44 -19
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/fan.py +11 -6
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/firmware.py +34 -34
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/frostprotection.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/humiditysensor.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/led.py +4 -4
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/light.py +22 -8
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/lighteffect.py +5 -5
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/lightpreset.py +10 -8
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/lightstripeffect.py +9 -8
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/lighttransition.py +28 -11
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/motionsensor.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/reportmode.py +2 -2
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/temperaturecontrol.py +5 -17
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/temperaturesensor.py +5 -3
- python_kasa-0.8.1/kasa/smart/modules/thermostat.py +74 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/time.py +5 -6
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/triggerlogs.py +9 -6
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/waterleaksensor.py +1 -1
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/smartchilddevice.py +25 -15
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/smartdevice.py +127 -36
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/smartmodule.py +12 -14
- python_kasa-0.8.1/kasa/smartcam/__init__.py +5 -0
- {python_kasa-0.7.7/kasa/experimental → python_kasa-0.8.1/kasa/smartcam}/modules/__init__.py +7 -1
- python_kasa-0.8.1/kasa/smartcam/modules/alarm.py +166 -0
- {python_kasa-0.7.7/kasa/experimental → python_kasa-0.8.1/kasa/smartcam}/modules/camera.py +30 -3
- {python_kasa-0.7.7/kasa/experimental → python_kasa-0.8.1/kasa/smartcam}/modules/childdevice.py +3 -2
- {python_kasa-0.7.7/kasa/experimental → python_kasa-0.8.1/kasa/smartcam}/modules/device.py +2 -2
- python_kasa-0.8.1/kasa/smartcam/modules/led.py +28 -0
- python_kasa-0.8.1/kasa/smartcam/modules/pantilt.py +107 -0
- {python_kasa-0.7.7/kasa/experimental → python_kasa-0.8.1/kasa/smartcam}/modules/time.py +4 -5
- python_kasa-0.7.7/kasa/experimental/smartcamera.py → python_kasa-0.8.1/kasa/smartcam/smartcamdevice.py +95 -31
- python_kasa-0.7.7/kasa/experimental/smartcameramodule.py → python_kasa-0.8.1/kasa/smartcam/smartcammodule.py +16 -13
- python_kasa-0.8.1/kasa/transports/__init__.py +16 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1/kasa/transports}/aestransport.py +32 -25
- python_kasa-0.8.1/kasa/transports/basetransport.py +55 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1/kasa/transports}/klaptransport.py +38 -27
- {python_kasa-0.7.7/kasa/experimental → python_kasa-0.8.1/kasa/transports}/sslaestransport.py +16 -11
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1/kasa/transports}/xortransport.py +6 -8
- {python_kasa-0.7.7 → python_kasa-0.8.1}/pyproject.toml +35 -18
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/conftest.py +12 -3
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/device_fixtures.py +82 -34
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/discovery_fixtures.py +37 -12
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fakeprotocol_iot.py +88 -14
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fakeprotocol_smart.py +57 -19
- python_kasa-0.7.7/kasa/tests/fakeprotocol_smartcamera.py → python_kasa-0.8.1/tests/fakeprotocol_smartcam.py +67 -38
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtureinfo.py +41 -17
- python_kasa-0.8.1/tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json +184 -0
- python_kasa-0.8.1/tests/fixtures/iot/HS200(US)_3.0_1.1.5.json +31 -0
- python_kasa-0.8.1/tests/fixtures/iot/HS200(US)_5.0_1.0.11.json +32 -0
- python_kasa-0.8.1/tests/fixtures/iot/HS210(US)_2.0_1.1.5.json +31 -0
- python_kasa-0.8.1/tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json +150 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL135(US)_1.0_1.0.15.json +68 -21
- python_kasa-0.8.1/tests/fixtures/iot/KL430(US)_2.0_1.0.11.json +141 -0
- python_kasa-0.8.1/tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json +111 -0
- python_kasa-0.8.1/tests/fixtures/iot/KP303(US)_2.0_1.0.9.json +55 -0
- python_kasa-0.8.1/tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json +155 -0
- python_kasa-0.8.1/tests/fixtures/iot/KS220(US)_1.0_1.0.13.json +111 -0
- python_kasa-0.8.1/tests/fixtures/serialization/deviceconfig_camera-aes-https.json +10 -0
- python_kasa-0.8.1/tests/fixtures/serialization/deviceconfig_plug-klap.json +11 -0
- python_kasa-0.8.1/tests/fixtures/serialization/deviceconfig_plug-xor.json +10 -0
- python_kasa-0.8.1/tests/fixtures/smart/EP40M(US)_1.0_1.1.0.json +876 -0
- python_kasa-0.8.1/tests/fixtures/smart/HS200(US)_5.26_1.0.3.json +379 -0
- python_kasa-0.8.1/tests/fixtures/smart/KP125M(US)_1.0_1.2.3.json +533 -0
- python_kasa-0.8.1/tests/fixtures/smart/KS240(US)_1.0_1.0.7.json +926 -0
- python_kasa-0.8.1/tests/fixtures/smart/L630(EU)_1.0_1.1.2.json +452 -0
- python_kasa-0.8.1/tests/fixtures/smart/P110M(AU)_1.0_1.2.3.json +418 -0
- python_kasa-0.8.1/tests/fixtures/smart/P110M(EU)_1.0_1.2.3.json +614 -0
- {python_kasa-0.7.7/kasa/tests/fixtures/smartcamera → python_kasa-0.8.1/tests/fixtures/smartcam}/C210(EU)_2.0_1.4.2.json +146 -0
- {python_kasa-0.7.7/kasa/tests/fixtures/smartcamera → python_kasa-0.8.1/tests/fixtures/smartcam}/H200(EU)_1.0_1.3.2.json +1 -1
- python_kasa-0.8.1/tests/fixtures/smartcam/H200(US)_1.0_1.3.6.json +785 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/iot/modules/test_ambientlight.py +2 -1
- python_kasa-0.8.1/tests/iot/modules/test_cloud.py +13 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/iot/modules/test_motion.py +2 -1
- python_kasa-0.8.1/tests/iot/modules/test_schedule.py +18 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/iot/test_wallswitch.py +1 -1
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/features/test_brightness.py +2 -1
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/features/test_colortemp.py +2 -1
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_autooff.py +3 -3
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_childprotection.py +2 -1
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_contact.py +4 -3
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_fan.py +40 -4
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_firmware.py +26 -8
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_humidity.py +2 -1
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_light_effect.py +3 -2
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_light_strip_effect.py +3 -2
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_lighttransition.py +3 -2
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_motionsensor.py +4 -3
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_temperature.py +2 -1
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_temperaturecontrol.py +3 -1
- python_kasa-0.8.1/tests/smart/modules/test_triggerlogs.py +22 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/smart/modules/test_waterleak.py +3 -3
- python_kasa-0.8.1/tests/smartcam/__init__.py +0 -0
- python_kasa-0.8.1/tests/smartcam/modules/__init__.py +0 -0
- python_kasa-0.8.1/tests/smartcam/modules/test_alarm.py +159 -0
- {python_kasa-0.7.7/kasa/tests/smartcamera → python_kasa-0.8.1/tests/smartcam}/test_smartcamera.py +40 -16
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_aestransport.py +12 -5
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_bulb.py +59 -34
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_childdevice.py +27 -10
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_cli.py +97 -68
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_common_modules.py +74 -19
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_device.py +69 -10
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_device_factory.py +15 -6
- python_kasa-0.8.1/tests/test_deviceconfig.py +136 -0
- python_kasa-0.8.1/tests/test_devtools.py +103 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_dimmer.py +38 -19
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_discovery.py +45 -19
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_emeter.py +44 -31
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_feature.py +5 -7
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_httpclient.py +4 -5
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_iotdevice.py +7 -9
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_klapprotocol.py +11 -9
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_lightstrip.py +18 -13
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_plug.py +20 -18
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_protocol.py +20 -15
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_readme_examples.py +2 -2
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_smartdevice.py +12 -7
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_smartprotocol.py +13 -9
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_sslaestransport.py +14 -8
- python_kasa-0.7.7/kasa/credentials.py +0 -13
- python_kasa-0.7.7/kasa/deviceconfig.py +0 -237
- python_kasa-0.7.7/kasa/experimental/__init__.py +0 -28
- python_kasa-0.7.7/kasa/json.py +0 -19
- python_kasa-0.7.7/kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json +0 -85
- python_kasa-0.7.7/kasa/tests/fixtures/KL430(US)_2.0_1.0.11.json +0 -59
- python_kasa-0.7.7/kasa/tests/fixtures/KP105(UK)_1.0_1.0.5.json +0 -36
- python_kasa-0.7.7/kasa/tests/fixtures/smartcamera/H200(US)_1.0_1.3.6.json +0 -339
- python_kasa-0.7.7/kasa/tests/test_deviceconfig.py +0 -74
- {python_kasa-0.7.7 → python_kasa-0.8.1}/.gitignore +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/LICENSE +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/README.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/__init__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/bench/benchmark.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/bench/utils/__init__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/bench/utils/data.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/create_module_fixtures.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/helpers/__init__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/devtools/perftest.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/Makefile +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/make.bat +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/SUPPORTED.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/_static/copybutton.js +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/cli.rst +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/codeinfo.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/deprecated.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/connect.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/device.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/discover.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/energy.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/feature.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/light.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/module.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides/strip.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/guides.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/index.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/library.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/smartbulb.rst +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/smartdevice.rst +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/smartdimmer.rst +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/smartlightstrip.rst +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/smartplug.rst +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/smartstrip.rst +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/source/tutorial.md +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/docs/tutorial.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/__init__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/cli/__main__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/device_type.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/interfaces/time.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/__init__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/effects.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/__init__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/antitheft.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/countdown.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/iot/modules/schedule.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/modulemapping.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/py.typed +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/__init__.py +0 -0
- {python_kasa-0.7.7 → python_kasa-0.8.1}/kasa/smart/modules/childdevice.py +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/__init__.py +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/EP10(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/EP40(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/ES20M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS100(UK)_1.0_1.2.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS100(UK)_4.1_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS100(US)_1.0_1.2.5.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS100(US)_2.0_1.5.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS103(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS103(US)_2.1_1.1.2.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS103(US)_2.1_1.1.4.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS105(US)_1.0_1.5.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS107(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS110(EU)_1.0_1.2.5.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS110(EU)_4.0_1.0.4.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS110(US)_1.0_1.2.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS200(US)_2.0_1.5.7.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS200(US)_5.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS210(US)_1.0_1.5.8.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS220(US)_1.0_1.5.7.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS220(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS300(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS300(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS300(US)_2.0_1.0.12.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/HS300(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL120(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL120(US)_1.0_1.8.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL125(US)_1.20_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL125(US)_2.0_1.0.7.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL125(US)_4.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL130(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL135(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL400L5(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL400L5(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL420L5(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL430(UN)_2.0_1.0.8.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL430(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL430(US)_2.0_1.0.8.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL430(US)_2.0_1.0.9.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL50(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL60(UN)_1.0_1.1.4.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KL60(US)_1.0_1.1.13.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP100(US)_3.0_1.0.1.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP105(UK)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP115(EU)_1.0_1.0.16.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP115(US)_1.0_1.0.17.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP115(US)_1.0_1.0.21.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP125(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP200(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP303(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP303(US)_2.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP400(US)_1.0_1.0.10.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP400(US)_2.0_1.0.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP400(US)_3.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP400(US)_3.0_1.0.4.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP401(US)_1.0_1.0.0.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP405(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KP405(US)_1.0_1.0.6.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KS200M(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KS200M(US)_1.0_1.0.12.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KS200M(US)_1.0_1.0.8.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KS220M(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/KS230(US)_1.0_1.0.14.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures → python_kasa-0.8.1/tests/fixtures/iot}/LB110(US)_1.0_1.8.11.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KH100(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KH100(EU)_1.0_1.5.12.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
- /python_kasa-0.7.7/kasa/tests/fixtures/smart/P100_1.0.0_1.1.3.json → /python_kasa-0.8.1/tests/fixtures/smart/P100(US)_1.0.0_1.1.3.json +0 -0
- /python_kasa-0.7.7/kasa/tests/fixtures/smart/P100_1.0.0_1.3.7.json → /python_kasa-0.8.1/tests/fixtures/smart/P100(US)_1.0.0_1.3.7.json +0 -0
- /python_kasa-0.7.7/kasa/tests/fixtures/smart/P100_1.0.0_1.4.0.json → /python_kasa-0.8.1/tests/fixtures/smart/P100(US)_1.0.0_1.4.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/P304M(UK)_1.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/S200B(US)_1.0_1.12.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/S200D(EU)_1.0_1.11.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/S200D(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T110(EU)_1.0_1.9.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T110(US)_1.0_1.9.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T310(US)_1.0_1.5.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/fixtures/smart/child/T315(US)_1.0_1.8.0.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures/smartcamera → python_kasa-0.8.1/tests/fixtures/smartcam}/C210(EU)_2.0_1.4.3.json +0 -0
- {python_kasa-0.7.7/kasa/tests/fixtures/smartcamera → python_kasa-0.8.1/tests/fixtures/smartcam}/TC65_1.0_1.3.9.json +0 -0
- {python_kasa-0.7.7/kasa/tests/iot/modules → python_kasa-0.8.1/tests/iot}/__init__.py +0 -0
- {python_kasa-0.7.7/kasa/tests/smart → python_kasa-0.8.1/tests/iot/modules}/__init__.py +0 -0
- {python_kasa-0.7.7/kasa/tests/smart/features → python_kasa-0.8.1/tests/smart}/__init__.py +0 -0
- {python_kasa-0.7.7/kasa/tests/smart/modules → python_kasa-0.8.1/tests/smart/features}/__init__.py +0 -0
- {python_kasa-0.7.7/kasa/tests/smartcamera → python_kasa-0.8.1/tests/smart/modules}/__init__.py +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_device_type.py +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_strip.py +0 -0
- {python_kasa-0.7.7/kasa → python_kasa-0.8.1}/tests/test_usage.py +0 -0
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.1](https://github.com/python-kasa/python-kasa/tree/0.8.1) (2024-12-06)
|
|
4
|
+
|
|
5
|
+
This patch release fixes some issues with newly supported smartcam devices.
|
|
6
|
+
|
|
7
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.8.0...0.8.1)
|
|
8
|
+
|
|
9
|
+
**Fixed bugs:**
|
|
10
|
+
|
|
11
|
+
- Fix update errors on hubs with unsupported children [\#1344](https://github.com/python-kasa/python-kasa/pull/1344) (@sdb9696)
|
|
12
|
+
- Fix smartcam missing device id [\#1343](https://github.com/python-kasa/python-kasa/pull/1343) (@sdb9696)
|
|
13
|
+
|
|
14
|
+
## [0.8.0](https://github.com/python-kasa/python-kasa/tree/0.8.0) (2024-11-26)
|
|
15
|
+
|
|
16
|
+
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.7...0.8.0)
|
|
17
|
+
|
|
18
|
+
**Release highlights:**
|
|
19
|
+
|
|
20
|
+
- **Initial support for devices using the Tapo camera protocol, i.e. Tapo cameras and the Tapo H200 hub.**
|
|
21
|
+
- New camera functionality such as exposing RTSP streaming urls and camera pan/tilt.
|
|
22
|
+
- New way of testing module support for individual features with `has_feature` and `get_feature`.
|
|
23
|
+
- Adding voltage and current monitoring to `smart` devices.
|
|
24
|
+
- Migration from pydantic to mashumaro for serialization.
|
|
25
|
+
|
|
26
|
+
Special thanks to @ryenitcher and @Puxtril for their new contributions to the improvement of the project! Also thanks to everyone who has helped with testing, contributing fixtures, and reporting issues!
|
|
27
|
+
|
|
28
|
+
**Breaking change notes:**
|
|
29
|
+
|
|
30
|
+
- Removed support for python <3.11. If you haven't got a compatible version try [uv](https://docs.astral.sh/uv/).
|
|
31
|
+
- Renamed `device_config.to_dict()` to `device_config.to_dict_control_credentials()`. `to_dict()` is still available but takes no parameters.
|
|
32
|
+
- From the `iot.Cloud` module the `iot.CloudInfo` class attributes have been converted to snake case.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
**Breaking changes:**
|
|
36
|
+
|
|
37
|
+
- Migrate iot cloud module to mashumaro [\#1282](https://github.com/python-kasa/python-kasa/pull/1282) (@sdb9696)
|
|
38
|
+
- Replace custom deviceconfig serialization with mashumaru [\#1274](https://github.com/python-kasa/python-kasa/pull/1274) (@sdb9696)
|
|
39
|
+
- Remove support for python \<3.11 [\#1273](https://github.com/python-kasa/python-kasa/pull/1273) (@sdb9696)
|
|
40
|
+
|
|
41
|
+
**Implemented enhancements:**
|
|
42
|
+
|
|
43
|
+
- Update cli modify presets to support smart devices [\#1295](https://github.com/python-kasa/python-kasa/pull/1295) (@sdb9696)
|
|
44
|
+
- Use credentials\_hash for smartcamera rtsp url [\#1293](https://github.com/python-kasa/python-kasa/pull/1293) (@sdb9696)
|
|
45
|
+
- Add voltage and current monitoring to smart Devices [\#1281](https://github.com/python-kasa/python-kasa/pull/1281) (@ryenitcher)
|
|
46
|
+
- Update cli feature command for actions not to require a value [\#1264](https://github.com/python-kasa/python-kasa/pull/1264) (@sdb9696)
|
|
47
|
+
- Add pan tilt camera module [\#1261](https://github.com/python-kasa/python-kasa/pull/1261) (@sdb9696)
|
|
48
|
+
- Add alarm module for smartcamera hubs [\#1258](https://github.com/python-kasa/python-kasa/pull/1258) (@sdb9696)
|
|
49
|
+
- Move TAPO smartcamera out of experimental package [\#1255](https://github.com/python-kasa/python-kasa/pull/1255) (@sdb9696)
|
|
50
|
+
- Add SmartCamera Led Module [\#1249](https://github.com/python-kasa/python-kasa/pull/1249) (@sdb9696)
|
|
51
|
+
- Use component queries to select smartcamera modules [\#1248](https://github.com/python-kasa/python-kasa/pull/1248) (@sdb9696)
|
|
52
|
+
- Print formatting for IotLightPreset [\#1216](https://github.com/python-kasa/python-kasa/pull/1216) (@Puxtril)
|
|
53
|
+
- Allow getting Annotated features from modules [\#1018](https://github.com/python-kasa/python-kasa/pull/1018) (@sdb9696)
|
|
54
|
+
- Add common Thermostat module [\#977](https://github.com/python-kasa/python-kasa/pull/977) (@sdb9696)
|
|
55
|
+
|
|
56
|
+
**Fixed bugs:**
|
|
57
|
+
|
|
58
|
+
- TP-Link Tapo S505D cannot disable gradual on/off [\#1309](https://github.com/python-kasa/python-kasa/issues/1309)
|
|
59
|
+
- Inconsistent emeter information between features and emeter cli [\#1308](https://github.com/python-kasa/python-kasa/issues/1308)
|
|
60
|
+
- How to dump power usage after latest updates? [\#1306](https://github.com/python-kasa/python-kasa/issues/1306)
|
|
61
|
+
- kasa.discover: Got unsupported connection type: 'device\_family': 'SMART.IPCAMERA' [\#1267](https://github.com/python-kasa/python-kasa/issues/1267)
|
|
62
|
+
- device \_\_repr\_\_ fails if no sys\_info [\#1262](https://github.com/python-kasa/python-kasa/issues/1262)
|
|
63
|
+
- Tapo P110M: Error processing Energy for device, module will be unavailable: get\_energy\_usage for Energy [\#1243](https://github.com/python-kasa/python-kasa/issues/1243)
|
|
64
|
+
- Listing light presets throws error [\#1201](https://github.com/python-kasa/python-kasa/issues/1201)
|
|
65
|
+
- Include duration when disabling smooth transition on/off [\#1313](https://github.com/python-kasa/python-kasa/pull/1313) (@rytilahti)
|
|
66
|
+
- Expose energy command to cli [\#1307](https://github.com/python-kasa/python-kasa/pull/1307) (@rytilahti)
|
|
67
|
+
- Make discovery on unsupported devices less noisy [\#1291](https://github.com/python-kasa/python-kasa/pull/1291) (@rytilahti)
|
|
68
|
+
- Fix repr for device created with no sysinfo or discovery info" [\#1266](https://github.com/python-kasa/python-kasa/pull/1266) (@sdb9696)
|
|
69
|
+
- Fix discovery by alias for smart devices [\#1260](https://github.com/python-kasa/python-kasa/pull/1260) (@sdb9696)
|
|
70
|
+
- Make \_\_repr\_\_ work on discovery info [\#1233](https://github.com/python-kasa/python-kasa/pull/1233) (@rytilahti)
|
|
71
|
+
|
|
72
|
+
**Added support for devices:**
|
|
73
|
+
|
|
74
|
+
- Add HS200 \(US\) Smart Fixture [\#1303](https://github.com/python-kasa/python-kasa/pull/1303) (@ZeliardM)
|
|
75
|
+
- Add smartcamera devices to supported docs [\#1257](https://github.com/python-kasa/python-kasa/pull/1257) (@sdb9696)
|
|
76
|
+
- Add P110M\(AU\) fixture [\#1244](https://github.com/python-kasa/python-kasa/pull/1244) (@rytilahti)
|
|
77
|
+
- Add L630 fixture [\#1240](https://github.com/python-kasa/python-kasa/pull/1240) (@rytilahti)
|
|
78
|
+
- Add EP40M Fixture [\#1238](https://github.com/python-kasa/python-kasa/pull/1238) (@ryenitcher)
|
|
79
|
+
- Add KS220 Fixture [\#1237](https://github.com/python-kasa/python-kasa/pull/1237) (@ryenitcher)
|
|
80
|
+
|
|
81
|
+
**Documentation updates:**
|
|
82
|
+
|
|
83
|
+
- Use markdown footnotes in supported.md [\#1310](https://github.com/python-kasa/python-kasa/pull/1310) (@sdb9696)
|
|
84
|
+
- Update docs for the new module attributes has/get feature [\#1301](https://github.com/python-kasa/python-kasa/pull/1301) (@sdb9696)
|
|
85
|
+
- Fixup contributing.md for running test against a real device [\#1236](https://github.com/python-kasa/python-kasa/pull/1236) (@sdb9696)
|
|
86
|
+
|
|
87
|
+
**Project maintenance:**
|
|
88
|
+
|
|
89
|
+
- Rename tests/smartcamera to tests/smartcam [\#1315](https://github.com/python-kasa/python-kasa/pull/1315) (@sdb9696)
|
|
90
|
+
- Do not error on smartcam hub attached smartcam child devices [\#1314](https://github.com/python-kasa/python-kasa/pull/1314) (@sdb9696)
|
|
91
|
+
- Add P110M\(EU\) fixture [\#1305](https://github.com/python-kasa/python-kasa/pull/1305) (@sdb9696)
|
|
92
|
+
- Run tests with caplog in a single worker [\#1304](https://github.com/python-kasa/python-kasa/pull/1304) (@sdb9696)
|
|
93
|
+
- Rename smartcamera to smartcam [\#1300](https://github.com/python-kasa/python-kasa/pull/1300) (@sdb9696)
|
|
94
|
+
- Move iot fixtures into iot subfolder [\#1299](https://github.com/python-kasa/python-kasa/pull/1299) (@sdb9696)
|
|
95
|
+
- Annotate fan\_speed\_level of Fan interface [\#1298](https://github.com/python-kasa/python-kasa/pull/1298) (@sdb9696)
|
|
96
|
+
- Add PIR ADC Values to Test Fixtures [\#1296](https://github.com/python-kasa/python-kasa/pull/1296) (@ryenitcher)
|
|
97
|
+
- Exclude \_\_getattr\_\_ for deprecated attributes from type checkers [\#1294](https://github.com/python-kasa/python-kasa/pull/1294) (@sdb9696)
|
|
98
|
+
- Simplify omit http\_client in DeviceConfig serialization [\#1292](https://github.com/python-kasa/python-kasa/pull/1292) (@sdb9696)
|
|
99
|
+
- Add SMART Voltage Monitoring to Fixtures [\#1290](https://github.com/python-kasa/python-kasa/pull/1290) (@ryenitcher)
|
|
100
|
+
- Remove pydantic dependency [\#1289](https://github.com/python-kasa/python-kasa/pull/1289) (@sdb9696)
|
|
101
|
+
- Do not print out all the fixture names at the start of test runs [\#1287](https://github.com/python-kasa/python-kasa/pull/1287) (@sdb9696)
|
|
102
|
+
- dump\_devinfo: iot light strip commands [\#1286](https://github.com/python-kasa/python-kasa/pull/1286) (@sdb9696)
|
|
103
|
+
- Migrate TurnOnBehaviours to mashumaro [\#1285](https://github.com/python-kasa/python-kasa/pull/1285) (@sdb9696)
|
|
104
|
+
- dump\_devinfo: query smartlife.iot.common.cloud for fw updates [\#1284](https://github.com/python-kasa/python-kasa/pull/1284) (@rytilahti)
|
|
105
|
+
- Migrate RuleModule to mashumaro [\#1283](https://github.com/python-kasa/python-kasa/pull/1283) (@sdb9696)
|
|
106
|
+
- Update sphinx dependency to 6.2 to fix docs build [\#1280](https://github.com/python-kasa/python-kasa/pull/1280) (@sdb9696)
|
|
107
|
+
- Update DiscoveryResult to use mashu Annotated Alias [\#1279](https://github.com/python-kasa/python-kasa/pull/1279) (@sdb9696)
|
|
108
|
+
- Extend dump\_devinfo iot queries [\#1278](https://github.com/python-kasa/python-kasa/pull/1278) (@sdb9696)
|
|
109
|
+
- Migrate triggerlogs to mashumaru [\#1277](https://github.com/python-kasa/python-kasa/pull/1277) (@sdb9696)
|
|
110
|
+
- Migrate smart firmware module to mashumaro [\#1276](https://github.com/python-kasa/python-kasa/pull/1276) (@sdb9696)
|
|
111
|
+
- Migrate IotLightPreset to mashumaru [\#1275](https://github.com/python-kasa/python-kasa/pull/1275) (@sdb9696)
|
|
112
|
+
- Allow callable coroutines for feature setters [\#1272](https://github.com/python-kasa/python-kasa/pull/1272) (@sdb9696)
|
|
113
|
+
- Fix deprecated SSLContext\(\) usage [\#1271](https://github.com/python-kasa/python-kasa/pull/1271) (@sdb9696)
|
|
114
|
+
- Use \_get\_device\_info methods for smart and iot devs in devtools [\#1265](https://github.com/python-kasa/python-kasa/pull/1265) (@sdb9696)
|
|
115
|
+
- Remove experimental support [\#1256](https://github.com/python-kasa/python-kasa/pull/1256) (@sdb9696)
|
|
116
|
+
- Move protocol modules into protocols package [\#1254](https://github.com/python-kasa/python-kasa/pull/1254) (@sdb9696)
|
|
117
|
+
- Add linkcheck to readthedocs CI [\#1253](https://github.com/python-kasa/python-kasa/pull/1253) (@rytilahti)
|
|
118
|
+
- Update cli energy command to use energy module [\#1252](https://github.com/python-kasa/python-kasa/pull/1252) (@sdb9696)
|
|
119
|
+
- Consolidate warnings for fixtures missing child devices [\#1251](https://github.com/python-kasa/python-kasa/pull/1251) (@sdb9696)
|
|
120
|
+
- Update smartcamera fixtures with components [\#1250](https://github.com/python-kasa/python-kasa/pull/1250) (@sdb9696)
|
|
121
|
+
- Move transports into their own package [\#1247](https://github.com/python-kasa/python-kasa/pull/1247) (@rytilahti)
|
|
122
|
+
- Fix warnings in our test suite [\#1246](https://github.com/python-kasa/python-kasa/pull/1246) (@rytilahti)
|
|
123
|
+
- Move tests folder to top level of project [\#1242](https://github.com/python-kasa/python-kasa/pull/1242) (@sdb9696)
|
|
124
|
+
- Fix test framework running against real devices [\#1235](https://github.com/python-kasa/python-kasa/pull/1235) (@sdb9696)
|
|
125
|
+
- Add Additional Firmware Test Fixures [\#1234](https://github.com/python-kasa/python-kasa/pull/1234) (@ryenitcher)
|
|
126
|
+
- Update DiscoveryResult to use Mashumaro instead of pydantic [\#1231](https://github.com/python-kasa/python-kasa/pull/1231) (@sdb9696)
|
|
127
|
+
- Update fixture for ES20M 1.0.11 [\#1215](https://github.com/python-kasa/python-kasa/pull/1215) (@rytilahti)
|
|
128
|
+
- Enable ruff check for ANN [\#1139](https://github.com/python-kasa/python-kasa/pull/1139) (@rytilahti)
|
|
129
|
+
|
|
130
|
+
**Closed issues:**
|
|
131
|
+
|
|
132
|
+
- Expose Fan speed range from the library [\#1008](https://github.com/python-kasa/python-kasa/issues/1008)
|
|
133
|
+
- \[META\] 0.7 series - module support for SMART devices, support for introspectable device features and refactoring the library [\#783](https://github.com/python-kasa/python-kasa/issues/783)
|
|
134
|
+
|
|
3
135
|
## [0.7.7](https://github.com/python-kasa/python-kasa/tree/0.7.7) (2024-11-04)
|
|
4
136
|
|
|
5
137
|
[Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.6...0.7.7)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: python-kasa
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.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
|
|
@@ -8,29 +8,24 @@ Project-URL: Documentation, https://python-kasa.readthedocs.io
|
|
|
8
8
|
Project-URL: Repository, https://github.com/python-kasa/python-kasa
|
|
9
9
|
Author: python-kasa developers
|
|
10
10
|
License: GPL-3.0-or-later
|
|
11
|
-
License-File: LICENSE
|
|
12
11
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
13
12
|
Classifier: Operating System :: OS Independent
|
|
14
13
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Requires-Python: <4.0,>=3.
|
|
17
|
+
Requires-Python: <4.0,>=3.11
|
|
21
18
|
Requires-Dist: aiohttp>=3
|
|
22
|
-
Requires-Dist: async-timeout>=3.0.0
|
|
23
19
|
Requires-Dist: asyncclick>=8.1.7
|
|
24
20
|
Requires-Dist: cryptography>=1.9
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist: typing-extensions<5.0,>=4.12.2
|
|
21
|
+
Requires-Dist: mashumaro>=3.14
|
|
27
22
|
Requires-Dist: tzdata>=2024.2; platform_system == 'Windows'
|
|
28
23
|
Provides-Extra: docs
|
|
29
24
|
Requires-Dist: docutils>=0.17; extra == 'docs'
|
|
30
25
|
Requires-Dist: myst-parser; extra == 'docs'
|
|
31
26
|
Requires-Dist: sphinx-rtd-theme~=2.0; extra == 'docs'
|
|
27
|
+
Requires-Dist: sphinx>=7.4.7; extra == 'docs'
|
|
32
28
|
Requires-Dist: sphinxcontrib-programoutput~=0.0; extra == 'docs'
|
|
33
|
-
Requires-Dist: sphinx~=5.0; extra == 'docs'
|
|
34
29
|
Provides-Extra: shell
|
|
35
30
|
Requires-Dist: ptpython; extra == 'shell'
|
|
36
31
|
Requires-Dist: rich; extra == 'shell'
|
|
@@ -223,28 +218,29 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
223
218
|
<!--SUPPORTED_START-->
|
|
224
219
|
### Supported Kasa devices
|
|
225
220
|
|
|
226
|
-
- **Plugs**: EP10, EP25
|
|
227
|
-
- **Power Strips**: EP40, HS107, HS300, KP200, KP303, KP400
|
|
228
|
-
- **Wall Switches**: ES20M, HS200, HS210, HS220
|
|
221
|
+
- **Plugs**: EP10, EP25[^1], HS100[^2], HS103, HS105, HS110, KP100, KP105, KP115, KP125, KP125M[^1], KP401
|
|
222
|
+
- **Power Strips**: EP40, EP40M[^1], HS107, HS300, KP200, KP303, KP400
|
|
223
|
+
- **Wall Switches**: ES20M, HS200[^2], HS210, HS220[^2], KP405, KS200M, KS205[^1], KS220, KS220M, KS225[^1], KS230, KS240[^1]
|
|
229
224
|
- **Bulbs**: KL110, KL120, KL125, KL130, KL135, KL50, KL60, LB110
|
|
230
225
|
- **Light Strips**: KL400L5, KL420L5, KL430
|
|
231
|
-
- **Hubs**: KH100
|
|
232
|
-
- **Hub-Connected Devices
|
|
226
|
+
- **Hubs**: KH100[^1]
|
|
227
|
+
- **Hub-Connected Devices[^3]**: KE100[^1]
|
|
233
228
|
|
|
234
|
-
### Supported Tapo
|
|
229
|
+
### Supported Tapo[^1] devices
|
|
235
230
|
|
|
236
|
-
- **Plugs**: P100, P110, P115, P125M, P135, TP15
|
|
231
|
+
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP15
|
|
237
232
|
- **Power Strips**: P300, P304M, TP25
|
|
238
233
|
- **Wall Switches**: S500D, S505, S505D
|
|
239
|
-
- **Bulbs**: L510B, L510E, L530E
|
|
234
|
+
- **Bulbs**: L510B, L510E, L530E, L630
|
|
240
235
|
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
|
|
241
|
-
- **
|
|
242
|
-
- **
|
|
236
|
+
- **Cameras**: C210, TC65
|
|
237
|
+
- **Hubs**: H100, H200
|
|
238
|
+
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
|
|
243
239
|
|
|
244
240
|
<!--SUPPORTED_END-->
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
[^1]: Model requires authentication
|
|
242
|
+
[^2]: Newer versions require authentication
|
|
243
|
+
[^3]: Devices may work across TAPO/KASA branded hubs
|
|
248
244
|
|
|
249
245
|
See [supported devices in our documentation](SUPPORTED.md) for more detailed information about tested hardware and software versions.
|
|
250
246
|
|
|
@@ -252,7 +248,7 @@ See [supported devices in our documentation](SUPPORTED.md) for more detailed inf
|
|
|
252
248
|
|
|
253
249
|
### Developer Resources
|
|
254
250
|
|
|
255
|
-
* [softScheck's github contains lot of information and wireshark dissector](https://github.com/softScheck/tplink-smartplug
|
|
251
|
+
* [softScheck's github contains lot of information and wireshark dissector](https://github.com/softScheck/tplink-smartplug)
|
|
256
252
|
* [TP-Link Smart Home Device Simulator](https://github.com/plasticrake/tplink-smarthome-simulator)
|
|
257
253
|
* [Unofficial API documentation](https://github.com/plasticrake/tplink-smarthome-api)
|
|
258
254
|
* [Another unofficial API documentation](https://github.com/whitslack/kasa)
|
|
@@ -182,28 +182,29 @@ The following devices have been tested and confirmed as working. If your device
|
|
|
182
182
|
<!--SUPPORTED_START-->
|
|
183
183
|
### Supported Kasa devices
|
|
184
184
|
|
|
185
|
-
- **Plugs**: EP10, EP25
|
|
186
|
-
- **Power Strips**: EP40, HS107, HS300, KP200, KP303, KP400
|
|
187
|
-
- **Wall Switches**: ES20M, HS200, HS210, HS220
|
|
185
|
+
- **Plugs**: EP10, EP25[^1], HS100[^2], HS103, HS105, HS110, KP100, KP105, KP115, KP125, KP125M[^1], KP401
|
|
186
|
+
- **Power Strips**: EP40, EP40M[^1], HS107, HS300, KP200, KP303, KP400
|
|
187
|
+
- **Wall Switches**: ES20M, HS200[^2], HS210, HS220[^2], KP405, KS200M, KS205[^1], KS220, KS220M, KS225[^1], KS230, KS240[^1]
|
|
188
188
|
- **Bulbs**: KL110, KL120, KL125, KL130, KL135, KL50, KL60, LB110
|
|
189
189
|
- **Light Strips**: KL400L5, KL420L5, KL430
|
|
190
|
-
- **Hubs**: KH100
|
|
191
|
-
- **Hub-Connected Devices
|
|
190
|
+
- **Hubs**: KH100[^1]
|
|
191
|
+
- **Hub-Connected Devices[^3]**: KE100[^1]
|
|
192
192
|
|
|
193
|
-
### Supported Tapo
|
|
193
|
+
### Supported Tapo[^1] devices
|
|
194
194
|
|
|
195
|
-
- **Plugs**: P100, P110, P115, P125M, P135, TP15
|
|
195
|
+
- **Plugs**: P100, P110, P110M, P115, P125M, P135, TP15
|
|
196
196
|
- **Power Strips**: P300, P304M, TP25
|
|
197
197
|
- **Wall Switches**: S500D, S505, S505D
|
|
198
|
-
- **Bulbs**: L510B, L510E, L530E
|
|
198
|
+
- **Bulbs**: L510B, L510E, L530E, L630
|
|
199
199
|
- **Light Strips**: L900-10, L900-5, L920-5, L930-5
|
|
200
|
-
- **
|
|
201
|
-
- **
|
|
200
|
+
- **Cameras**: C210, TC65
|
|
201
|
+
- **Hubs**: H100, H200
|
|
202
|
+
- **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
|
|
202
203
|
|
|
203
204
|
<!--SUPPORTED_END-->
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
[^1]: Model requires authentication
|
|
206
|
+
[^2]: Newer versions require authentication
|
|
207
|
+
[^3]: Devices may work across TAPO/KASA branded hubs
|
|
207
208
|
|
|
208
209
|
See [supported devices in our documentation](SUPPORTED.md) for more detailed information about tested hardware and software versions.
|
|
209
210
|
|
|
@@ -211,7 +212,7 @@ See [supported devices in our documentation](SUPPORTED.md) for more detailed inf
|
|
|
211
212
|
|
|
212
213
|
### Developer Resources
|
|
213
214
|
|
|
214
|
-
* [softScheck's github contains lot of information and wireshark dissector](https://github.com/softScheck/tplink-smartplug
|
|
215
|
+
* [softScheck's github contains lot of information and wireshark dissector](https://github.com/softScheck/tplink-smartplug)
|
|
215
216
|
* [TP-Link Smart Home Device Simulator](https://github.com/plasticrake/tplink-smarthome-simulator)
|
|
216
217
|
* [Unofficial API documentation](https://github.com/plasticrake/tplink-smarthome-api)
|
|
217
218
|
* [Another unofficial API documentation](https://github.com/whitslack/kasa)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""This script generates devinfo files for the test suite.
|
|
2
2
|
|
|
3
3
|
If you have new, yet unsupported device or a device with no devinfo file under
|
|
4
|
-
|
|
4
|
+
tests/fixtures, feel free to run this script and create a PR to add the file
|
|
5
5
|
to the repository.
|
|
6
6
|
|
|
7
7
|
Executing this script will several modules and methods one by one,
|
|
@@ -21,10 +21,11 @@ import traceback
|
|
|
21
21
|
from collections import defaultdict, namedtuple
|
|
22
22
|
from pathlib import Path
|
|
23
23
|
from pprint import pprint
|
|
24
|
+
from typing import Any
|
|
24
25
|
|
|
25
26
|
import asyncclick as click
|
|
26
27
|
|
|
27
|
-
from devtools.helpers.
|
|
28
|
+
from devtools.helpers.smartcamrequests import SMARTCAM_REQUESTS
|
|
28
29
|
from devtools.helpers.smartrequests import SmartRequest, get_component_requests
|
|
29
30
|
from kasa import (
|
|
30
31
|
AuthenticationError,
|
|
@@ -40,20 +41,22 @@ from kasa.device_factory import get_protocol
|
|
|
40
41
|
from kasa.deviceconfig import DeviceEncryptionType, DeviceFamily
|
|
41
42
|
from kasa.discover import DiscoveryResult
|
|
42
43
|
from kasa.exceptions import SmartErrorCode
|
|
43
|
-
from kasa.
|
|
44
|
-
|
|
44
|
+
from kasa.protocols import IotProtocol
|
|
45
|
+
from kasa.protocols.smartcamprotocol import (
|
|
46
|
+
SmartCamProtocol,
|
|
45
47
|
_ChildCameraProtocolWrapper,
|
|
46
48
|
)
|
|
47
|
-
from kasa.
|
|
48
|
-
from kasa.
|
|
49
|
+
from kasa.protocols.smartprotocol import SmartProtocol, _ChildProtocolWrapper
|
|
50
|
+
from kasa.smart import SmartChildDevice, SmartDevice
|
|
51
|
+
from kasa.smartcam import SmartCamDevice
|
|
49
52
|
|
|
50
53
|
Call = namedtuple("Call", "module method")
|
|
51
54
|
FixtureResult = namedtuple("FixtureResult", "filename, folder, data")
|
|
52
55
|
|
|
53
|
-
SMART_FOLDER = "
|
|
54
|
-
|
|
55
|
-
SMART_CHILD_FOLDER = "
|
|
56
|
-
IOT_FOLDER = "
|
|
56
|
+
SMART_FOLDER = "tests/fixtures/smart/"
|
|
57
|
+
SMARTCAM_FOLDER = "tests/fixtures/smartcam/"
|
|
58
|
+
SMART_CHILD_FOLDER = "tests/fixtures/smart/child/"
|
|
59
|
+
IOT_FOLDER = "tests/fixtures/iot/"
|
|
57
60
|
|
|
58
61
|
ENCRYPT_TYPES = [encrypt_type.value for encrypt_type in DeviceEncryptionType]
|
|
59
62
|
|
|
@@ -62,7 +65,7 @@ _LOGGER = logging.getLogger(__name__)
|
|
|
62
65
|
|
|
63
66
|
@dataclasses.dataclass
|
|
64
67
|
class SmartCall:
|
|
65
|
-
"""Class for smart and
|
|
68
|
+
"""Class for smart and smartcam calls."""
|
|
66
69
|
|
|
67
70
|
module: str
|
|
68
71
|
request: dict
|
|
@@ -111,6 +114,7 @@ def scrub(res):
|
|
|
111
114
|
"connect_ssid",
|
|
112
115
|
"encrypt_info",
|
|
113
116
|
"local_ip",
|
|
117
|
+
"username",
|
|
114
118
|
]
|
|
115
119
|
|
|
116
120
|
for k, v in res.items():
|
|
@@ -149,7 +153,7 @@ def scrub(res):
|
|
|
149
153
|
v = base64.b64encode(b"#MASKED_SSID#").decode()
|
|
150
154
|
elif k in ["nickname"]:
|
|
151
155
|
v = base64.b64encode(b"#MASKED_NAME#").decode()
|
|
152
|
-
elif k in ["alias", "device_alias", "device_name"]:
|
|
156
|
+
elif k in ["alias", "device_alias", "device_name", "username"]:
|
|
153
157
|
v = "#MASKED_NAME#"
|
|
154
158
|
elif isinstance(res[k], int):
|
|
155
159
|
v = 0
|
|
@@ -309,17 +313,13 @@ async def cli(
|
|
|
309
313
|
if debug:
|
|
310
314
|
logging.basicConfig(level=logging.DEBUG)
|
|
311
315
|
|
|
312
|
-
from kasa.experimental import Experimental
|
|
313
|
-
|
|
314
|
-
Experimental.set_enabled(True)
|
|
315
|
-
|
|
316
316
|
credentials = Credentials(username=username, password=password)
|
|
317
317
|
if host is not None:
|
|
318
318
|
if discovery_info:
|
|
319
|
-
click.echo("Host and discovery info given, trying connect on
|
|
319
|
+
click.echo(f"Host and discovery info given, trying connect on {host}.")
|
|
320
320
|
|
|
321
321
|
di = json.loads(discovery_info)
|
|
322
|
-
dr = DiscoveryResult(
|
|
322
|
+
dr = DiscoveryResult.from_dict(di)
|
|
323
323
|
connection_type = DeviceConnectionParameters.from_values(
|
|
324
324
|
dr.device_type,
|
|
325
325
|
dr.mgt_encrypt_schm.encrypt_type,
|
|
@@ -336,7 +336,7 @@ async def cli(
|
|
|
336
336
|
basedir,
|
|
337
337
|
autosave,
|
|
338
338
|
device.protocol,
|
|
339
|
-
discovery_info=dr.
|
|
339
|
+
discovery_info=dr.to_dict(),
|
|
340
340
|
batch_size=batch_size,
|
|
341
341
|
)
|
|
342
342
|
elif device_family and encrypt_type:
|
|
@@ -356,11 +356,10 @@ async def cli(
|
|
|
356
356
|
await handle_device(basedir, autosave, protocol, batch_size=batch_size)
|
|
357
357
|
else:
|
|
358
358
|
raise KasaException(
|
|
359
|
-
"Could not find a protocol for the given parameters.
|
|
360
|
-
+ "Maybe you need to enable --experimental."
|
|
359
|
+
"Could not find a protocol for the given parameters."
|
|
361
360
|
)
|
|
362
361
|
else:
|
|
363
|
-
click.echo("Host given, performing discovery on
|
|
362
|
+
click.echo(f"Host given, performing discovery on {host}.")
|
|
364
363
|
device = await Discover.discover_single(
|
|
365
364
|
host,
|
|
366
365
|
credentials=credentials,
|
|
@@ -376,13 +375,13 @@ async def cli(
|
|
|
376
375
|
)
|
|
377
376
|
else:
|
|
378
377
|
click.echo(
|
|
379
|
-
"No --host given, performing discovery on
|
|
380
|
-
|
|
378
|
+
"No --host given, performing discovery on"
|
|
379
|
+
f" {target}. Use --target to override."
|
|
381
380
|
)
|
|
382
381
|
devices = await Discover.discover(
|
|
383
382
|
target=target, credentials=credentials, discovery_timeout=discovery_timeout
|
|
384
383
|
)
|
|
385
|
-
click.echo("Detected
|
|
384
|
+
click.echo(f"Detected {len(devices)} devices")
|
|
386
385
|
for dev in devices.values():
|
|
387
386
|
await handle_device(
|
|
388
387
|
basedir,
|
|
@@ -393,19 +392,43 @@ async def cli(
|
|
|
393
392
|
)
|
|
394
393
|
|
|
395
394
|
|
|
396
|
-
async def get_legacy_fixture(
|
|
395
|
+
async def get_legacy_fixture(
|
|
396
|
+
protocol: IotProtocol, *, discovery_info: dict[str, Any] | None
|
|
397
|
+
) -> FixtureResult:
|
|
397
398
|
"""Get fixture for legacy IOT style protocol."""
|
|
398
399
|
items = [
|
|
399
400
|
Call(module="system", method="get_sysinfo"),
|
|
400
401
|
Call(module="emeter", method="get_realtime"),
|
|
402
|
+
Call(module="cnCloud", method="get_info"),
|
|
403
|
+
Call(module="cnCloud", method="get_intl_fw_list"),
|
|
404
|
+
Call(module="smartlife.iot.common.cloud", method="get_info"),
|
|
405
|
+
Call(module="smartlife.iot.common.cloud", method="get_intl_fw_list"),
|
|
406
|
+
Call(module="smartlife.iot.common.schedule", method="get_next_action"),
|
|
407
|
+
Call(module="smartlife.iot.common.schedule", method="get_rules"),
|
|
408
|
+
Call(module="schedule", method="get_next_action"),
|
|
409
|
+
Call(module="schedule", method="get_rules"),
|
|
401
410
|
Call(module="smartlife.iot.dimmer", method="get_dimmer_parameters"),
|
|
411
|
+
Call(module="smartlife.iot.dimmer", method="get_default_behavior"),
|
|
402
412
|
Call(module="smartlife.iot.common.emeter", method="get_realtime"),
|
|
403
413
|
Call(
|
|
404
414
|
module="smartlife.iot.smartbulb.lightingservice", method="get_light_state"
|
|
405
415
|
),
|
|
416
|
+
Call(
|
|
417
|
+
module="smartlife.iot.smartbulb.lightingservice",
|
|
418
|
+
method="get_default_behavior",
|
|
419
|
+
),
|
|
420
|
+
Call(
|
|
421
|
+
module="smartlife.iot.smartbulb.lightingservice", method="get_light_details"
|
|
422
|
+
),
|
|
423
|
+
Call(module="smartlife.iot.lightStrip", method="get_default_behavior"),
|
|
424
|
+
Call(module="smartlife.iot.lightStrip", method="get_light_state"),
|
|
425
|
+
Call(module="smartlife.iot.lightStrip", method="get_light_details"),
|
|
406
426
|
Call(module="smartlife.iot.LAS", method="get_config"),
|
|
407
427
|
Call(module="smartlife.iot.LAS", method="get_current_brt"),
|
|
428
|
+
Call(module="smartlife.iot.LAS", method="get_dark_status"),
|
|
429
|
+
Call(module="smartlife.iot.LAS", method="get_adc_value"),
|
|
408
430
|
Call(module="smartlife.iot.PIR", method="get_config"),
|
|
431
|
+
Call(module="smartlife.iot.PIR", method="get_adc_value"),
|
|
409
432
|
]
|
|
410
433
|
|
|
411
434
|
successes = []
|
|
@@ -426,8 +449,8 @@ async def get_legacy_fixture(protocol, *, discovery_info):
|
|
|
426
449
|
finally:
|
|
427
450
|
await protocol.close()
|
|
428
451
|
|
|
429
|
-
final_query = defaultdict(defaultdict)
|
|
430
|
-
final = defaultdict(defaultdict)
|
|
452
|
+
final_query: dict = defaultdict(defaultdict)
|
|
453
|
+
final: dict = defaultdict(defaultdict)
|
|
431
454
|
for succ, resp in successes:
|
|
432
455
|
final_query[succ.module][succ.method] = {}
|
|
433
456
|
final[succ.module][succ.method] = resp
|
|
@@ -437,18 +460,16 @@ async def get_legacy_fixture(protocol, *, discovery_info):
|
|
|
437
460
|
try:
|
|
438
461
|
final = await protocol.query(final_query)
|
|
439
462
|
except Exception as ex:
|
|
440
|
-
_echo_error(f"Unable to query all successes at once: {ex}"
|
|
463
|
+
_echo_error(f"Unable to query all successes at once: {ex}")
|
|
441
464
|
finally:
|
|
442
465
|
await protocol.close()
|
|
443
466
|
if discovery_info and not discovery_info.get("system"):
|
|
444
467
|
# Need to recreate a DiscoverResult here because we don't want the aliases
|
|
445
468
|
# in the fixture, we want the actual field names as returned by the device.
|
|
446
|
-
dr = DiscoveryResult(
|
|
447
|
-
final["discovery_result"] = dr.
|
|
448
|
-
by_alias=False, exclude_unset=True, exclude_none=True, exclude_defaults=True
|
|
449
|
-
)
|
|
469
|
+
dr = DiscoveryResult.from_dict(discovery_info)
|
|
470
|
+
final["discovery_result"] = dr.to_dict()
|
|
450
471
|
|
|
451
|
-
click.echo("Got
|
|
472
|
+
click.echo(f"Got {len(successes)} successes")
|
|
452
473
|
click.echo(click.style("## device info file ##", bold=True))
|
|
453
474
|
|
|
454
475
|
sysinfo = final["system"]["get_sysinfo"]
|
|
@@ -541,7 +562,7 @@ async def _make_requests_or_exit(
|
|
|
541
562
|
# Calling close on child protocol wrappers is a noop
|
|
542
563
|
protocol_to_close = protocol
|
|
543
564
|
if child_device_id:
|
|
544
|
-
if isinstance(protocol,
|
|
565
|
+
if isinstance(protocol, SmartCamProtocol):
|
|
545
566
|
protocol = _ChildCameraProtocolWrapper(child_device_id, protocol)
|
|
546
567
|
else:
|
|
547
568
|
protocol = _ChildProtocolWrapper(child_device_id, protocol)
|
|
@@ -587,7 +608,7 @@ async def get_smart_camera_test_calls(protocol: SmartProtocol):
|
|
|
587
608
|
successes: list[SmartCall] = []
|
|
588
609
|
|
|
589
610
|
test_calls = []
|
|
590
|
-
for request in
|
|
611
|
+
for request in SMARTCAM_REQUESTS:
|
|
591
612
|
method = next(iter(request))
|
|
592
613
|
if method == "get":
|
|
593
614
|
module = method + "_" + next(iter(request[method]))
|
|
@@ -672,7 +693,7 @@ async def get_smart_camera_test_calls(protocol: SmartProtocol):
|
|
|
672
693
|
click.echo(f"Skipping {component_id}..", nl=False)
|
|
673
694
|
click.echo(click.style("UNSUPPORTED", fg="yellow"))
|
|
674
695
|
else: # Not a smart protocol device so assume camera protocol
|
|
675
|
-
for request in
|
|
696
|
+
for request in SMARTCAM_REQUESTS:
|
|
676
697
|
method = next(iter(request))
|
|
677
698
|
if method == "get":
|
|
678
699
|
method = method + "_" + next(iter(request[method]))
|
|
@@ -821,25 +842,23 @@ async def get_smart_test_calls(protocol: SmartProtocol):
|
|
|
821
842
|
|
|
822
843
|
def get_smart_child_fixture(response):
|
|
823
844
|
"""Get a seperate fixture for the child device."""
|
|
824
|
-
|
|
825
|
-
hw_version =
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
save_filename = f"{model}_{hw_version}_{sw_version}.json"
|
|
845
|
+
model_info = SmartDevice._get_device_info(response, None)
|
|
846
|
+
hw_version = model_info.hardware_version
|
|
847
|
+
fw_version = model_info.firmware_version
|
|
848
|
+
model = model_info.long_name
|
|
849
|
+
if model_info.region is not None:
|
|
850
|
+
model = f"{model}({model_info.region})"
|
|
851
|
+
save_filename = f"{model}_{hw_version}_{fw_version}.json"
|
|
833
852
|
return FixtureResult(
|
|
834
853
|
filename=save_filename, folder=SMART_CHILD_FOLDER, data=response
|
|
835
854
|
)
|
|
836
855
|
|
|
837
856
|
|
|
838
857
|
async def get_smart_fixtures(
|
|
839
|
-
protocol: SmartProtocol, *, discovery_info
|
|
840
|
-
):
|
|
858
|
+
protocol: SmartProtocol, *, discovery_info: dict[str, Any] | None, batch_size: int
|
|
859
|
+
) -> list[FixtureResult]:
|
|
841
860
|
"""Get fixture for new TAPO style protocol."""
|
|
842
|
-
if isinstance(protocol,
|
|
861
|
+
if isinstance(protocol, SmartCamProtocol):
|
|
843
862
|
test_calls, successes = await get_smart_camera_test_calls(protocol)
|
|
844
863
|
child_wrapper: type[_ChildProtocolWrapper | _ChildCameraProtocolWrapper] = (
|
|
845
864
|
_ChildCameraProtocolWrapper
|
|
@@ -960,35 +979,25 @@ async def get_smart_fixtures(
|
|
|
960
979
|
# Need to recreate a DiscoverResult here because we don't want the aliases
|
|
961
980
|
# in the fixture, we want the actual field names as returned by the device.
|
|
962
981
|
if discovery_info:
|
|
963
|
-
dr = DiscoveryResult(
|
|
964
|
-
final["discovery_result"] = dr.
|
|
965
|
-
by_alias=False, exclude_unset=True, exclude_none=True, exclude_defaults=True
|
|
966
|
-
)
|
|
982
|
+
dr = DiscoveryResult.from_dict(discovery_info) # type: ignore
|
|
983
|
+
final["discovery_result"] = dr.to_dict()
|
|
967
984
|
|
|
968
|
-
click.echo("Got
|
|
985
|
+
click.echo(f"Got {len(successes)} successes")
|
|
969
986
|
click.echo(click.style("## device info file ##", bold=True))
|
|
970
987
|
|
|
971
988
|
if "get_device_info" in final:
|
|
972
989
|
# smart protocol
|
|
973
|
-
|
|
974
|
-
sw_version = final["get_device_info"]["fw_ver"]
|
|
975
|
-
if discovery_info:
|
|
976
|
-
model = discovery_info["device_model"]
|
|
977
|
-
else:
|
|
978
|
-
model = final["get_device_info"]["model"] + "(XX)"
|
|
979
|
-
sw_version = sw_version.split(" ", maxsplit=1)[0]
|
|
990
|
+
model_info = SmartDevice._get_device_info(final, discovery_info)
|
|
980
991
|
copy_folder = SMART_FOLDER
|
|
981
992
|
else:
|
|
982
993
|
# smart camera protocol
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
model = f"{model}({region})"
|
|
991
|
-
copy_folder = SMARTCAMERA_FOLDER
|
|
994
|
+
model_info = SmartCamDevice._get_device_info(final, discovery_info)
|
|
995
|
+
copy_folder = SMARTCAM_FOLDER
|
|
996
|
+
hw_version = model_info.hardware_version
|
|
997
|
+
sw_version = model_info.firmware_version
|
|
998
|
+
model = model_info.long_name
|
|
999
|
+
if model_info.region is not None:
|
|
1000
|
+
model = f"{model}({model_info.region})"
|
|
992
1001
|
|
|
993
1002
|
save_filename = f"{model}_{hw_version}_{sw_version}.json"
|
|
994
1003
|
|