python-kasa 0.9.1__tar.gz → 0.10.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. {python_kasa-0.9.1 → python_kasa-0.10.0}/CHANGELOG.md +94 -2
  2. {python_kasa-0.9.1 → python_kasa-0.10.0}/PKG-INFO +4 -2
  3. {python_kasa-0.9.1 → python_kasa-0.10.0}/README.md +3 -1
  4. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/dump_devinfo.py +137 -52
  5. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/generate_supported.py +6 -1
  6. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/helpers/smartrequests.py +21 -2
  7. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/parse_pcap_klap.py +1 -2
  8. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/strip.md +7 -0
  9. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/tutorial.py +2 -1
  10. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/common.py +31 -2
  11. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/device.py +3 -0
  12. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/discover.py +62 -19
  13. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/feature.py +17 -5
  14. python_kasa-0.10.0/kasa/cli/hub.py +95 -0
  15. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/lazygroup.py +1 -2
  16. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/main.py +14 -5
  17. python_kasa-0.10.0/kasa/cli/vacuum.py +84 -0
  18. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/device.py +42 -6
  19. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/device_factory.py +32 -12
  20. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/device_type.py +2 -0
  21. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/deviceconfig.py +13 -4
  22. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/discover.py +66 -49
  23. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/exceptions.py +2 -0
  24. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/feature.py +27 -7
  25. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/__init__.py +4 -0
  26. python_kasa-0.10.0/kasa/interfaces/alarm.py +75 -0
  27. python_kasa-0.10.0/kasa/interfaces/childsetup.py +70 -0
  28. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/light.py +44 -29
  29. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotdimmer.py +1 -3
  30. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotstrip.py +8 -2
  31. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/light.py +4 -40
  32. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/lightpreset.py +1 -1
  33. python_kasa-0.10.0/kasa/iot/modules/motion.py +408 -0
  34. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/module.py +26 -5
  35. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/protocols/iotprotocol.py +1 -1
  36. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/protocols/smartcamprotocol.py +5 -1
  37. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/protocols/smartprotocol.py +19 -1
  38. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/__init__.py +18 -0
  39. python_kasa-0.10.0/kasa/smart/modules/alarm.py +262 -0
  40. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/batterysensor.py +28 -14
  41. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/childdevice.py +8 -0
  42. python_kasa-0.10.0/kasa/smart/modules/childlock.py +37 -0
  43. python_kasa-0.10.0/kasa/smart/modules/childsetup.py +112 -0
  44. python_kasa-0.10.0/kasa/smart/modules/clean.py +411 -0
  45. python_kasa-0.10.0/kasa/smart/modules/cleanrecords.py +205 -0
  46. python_kasa-0.10.0/kasa/smart/modules/consumables.py +170 -0
  47. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/devicemodule.py +4 -1
  48. python_kasa-0.10.0/kasa/smart/modules/dustbin.py +117 -0
  49. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/energy.py +6 -4
  50. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/light.py +3 -34
  51. python_kasa-0.10.0/kasa/smart/modules/mop.py +90 -0
  52. python_kasa-0.10.0/kasa/smart/modules/powerprotection.py +124 -0
  53. python_kasa-0.10.0/kasa/smart/modules/speaker.py +67 -0
  54. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/smartchilddevice.py +18 -2
  55. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/smartdevice.py +127 -40
  56. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/smartmodule.py +16 -3
  57. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/__init__.py +2 -1
  58. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/__init__.py +6 -0
  59. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/alarm.py +61 -18
  60. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/babycrydetection.py +2 -0
  61. python_kasa-0.10.0/kasa/smartcam/modules/battery.py +113 -0
  62. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/camera.py +8 -5
  63. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/childdevice.py +4 -1
  64. python_kasa-0.10.0/kasa/smartcam/modules/childsetup.py +112 -0
  65. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/device.py +8 -3
  66. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/led.py +2 -0
  67. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/lensmask.py +2 -0
  68. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/motiondetection.py +2 -0
  69. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/persondetection.py +2 -0
  70. python_kasa-0.10.0/kasa/smartcam/modules/petdetection.py +49 -0
  71. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/tamperdetection.py +2 -0
  72. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/time.py +2 -0
  73. python_kasa-0.10.0/kasa/smartcam/smartcamchild.py +118 -0
  74. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/smartcamdevice.py +74 -56
  75. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/smartcammodule.py +7 -16
  76. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/aestransport.py +2 -0
  77. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/klaptransport.py +45 -2
  78. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/linkietransport.py +2 -0
  79. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/sslaestransport.py +2 -0
  80. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/ssltransport.py +3 -1
  81. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/xortransport.py +3 -5
  82. {python_kasa-0.9.1 → python_kasa-0.10.0}/pyproject.toml +3 -5
  83. python_kasa-0.10.0/tests/cli/test_hub.py +53 -0
  84. python_kasa-0.10.0/tests/cli/test_vacuum.py +114 -0
  85. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/conftest.py +13 -0
  86. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/device_fixtures.py +31 -3
  87. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/discovery_fixtures.py +67 -12
  88. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fakeprotocol_iot.py +2 -5
  89. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fakeprotocol_smart.py +192 -61
  90. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fakeprotocol_smartcam.py +126 -33
  91. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtureinfo.py +13 -11
  92. python_kasa-0.10.0/tests/fixtures/iot/KS230(US)_2.0_1.0.11.json +112 -0
  93. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/serialization/deviceconfig_camera-aes-https.json +2 -3
  94. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/serialization/deviceconfig_plug-klap.json +2 -3
  95. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/serialization/deviceconfig_plug-xor.json +2 -3
  96. python_kasa-0.10.0/tests/fixtures/smart/D100C(US)_1.0_1.1.3.json +258 -0
  97. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +18 -0
  98. python_kasa-0.10.0/tests/fixtures/smart/RV20 Max Plus(EU)_1.0_1.0.7.json +382 -0
  99. python_kasa-0.10.0/tests/fixtures/smart/RV30 Max(US)_1.0_1.2.0.json +888 -0
  100. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +1 -1
  101. python_kasa-0.10.0/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +537 -0
  102. python_kasa-0.10.0/tests/fixtures/smartcam/C220(EU)_1.0_1.2.2.json +1234 -0
  103. python_kasa-0.10.0/tests/fixtures/smartcam/C720(US)_1.0_1.2.3.json +1039 -0
  104. python_kasa-0.10.0/tests/fixtures/smartcam/D130(US)_1.0_1.1.9.json +986 -0
  105. python_kasa-0.10.0/tests/fixtures/smartcam/H200(EU)_1.0_1.3.6.json +556 -0
  106. python_kasa-0.10.0/tests/fixtures/smartcam/child/D230(EU)_1.20_1.1.19.json +525 -0
  107. python_kasa-0.10.0/tests/iot/modules/test_motion.py +114 -0
  108. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/test_iotdevice.py +2 -1
  109. python_kasa-0.10.0/tests/smart/modules/test_alarm.py +124 -0
  110. python_kasa-0.10.0/tests/smart/modules/test_childlock.py +44 -0
  111. python_kasa-0.10.0/tests/smart/modules/test_childsetup.py +68 -0
  112. python_kasa-0.10.0/tests/smart/modules/test_clean.py +241 -0
  113. python_kasa-0.10.0/tests/smart/modules/test_cleanrecords.py +59 -0
  114. python_kasa-0.10.0/tests/smart/modules/test_consumables.py +53 -0
  115. python_kasa-0.10.0/tests/smart/modules/test_dustbin.py +92 -0
  116. python_kasa-0.10.0/tests/smart/modules/test_mop.py +58 -0
  117. python_kasa-0.10.0/tests/smart/modules/test_powerprotection.py +98 -0
  118. python_kasa-0.10.0/tests/smart/modules/test_speaker.py +71 -0
  119. python_kasa-0.10.0/tests/smart/test_smartdevice.py +1012 -0
  120. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smartcam/modules/test_alarm.py +17 -5
  121. python_kasa-0.10.0/tests/smartcam/modules/test_battery.py +33 -0
  122. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smartcam/modules/test_camera.py +9 -3
  123. python_kasa-0.10.0/tests/smartcam/modules/test_childsetup.py +85 -0
  124. python_kasa-0.10.0/tests/smartcam/modules/test_petdetection.py +45 -0
  125. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smartcam/test_smartcamdevice.py +4 -4
  126. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_bulb.py +68 -0
  127. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_cli.py +65 -15
  128. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_device.py +21 -6
  129. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_device_factory.py +14 -7
  130. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_devtools.py +59 -5
  131. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_discovery.py +31 -14
  132. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_feature.py +16 -4
  133. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_readme_examples.py +23 -0
  134. python_kasa-0.10.0/tests/transports/__init__.py +0 -0
  135. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/transports/test_aestransport.py +1 -1
  136. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/transports/test_sslaestransport.py +3 -3
  137. python_kasa-0.9.1/kasa/iot/modules/motion.py +0 -102
  138. python_kasa-0.9.1/kasa/smart/modules/alarm.py +0 -145
  139. python_kasa-0.9.1/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -537
  140. python_kasa-0.9.1/tests/iot/modules/test_motion.py +0 -58
  141. python_kasa-0.9.1/tests/smart/test_smartdevice.py +0 -548
  142. {python_kasa-0.9.1 → python_kasa-0.10.0}/.gitignore +0 -0
  143. {python_kasa-0.9.1 → python_kasa-0.10.0}/LICENSE +0 -0
  144. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/README.md +0 -0
  145. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/__init__.py +0 -0
  146. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/bench/benchmark.py +0 -0
  147. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/bench/utils/__init__.py +0 -0
  148. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/bench/utils/data.py +0 -0
  149. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/bench/utils/original.py +0 -0
  150. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/create_module_fixtures.py +0 -0
  151. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/helpers/__init__.py +0 -0
  152. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/helpers/smartcamrequests.py +0 -0
  153. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/parse_pcap.py +0 -0
  154. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/perftest.py +0 -0
  155. {python_kasa-0.9.1 → python_kasa-0.10.0}/devtools/update_fixtures.py +0 -0
  156. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/Makefile +0 -0
  157. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/make.bat +0 -0
  158. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/SUPPORTED.md +0 -0
  159. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/_static/copybutton.js +0 -0
  160. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/cli.rst +0 -0
  161. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/codeinfo.md +0 -0
  162. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/conf.py +0 -0
  163. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/contribute.md +0 -0
  164. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/deprecated.md +0 -0
  165. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/featureattributes.md +0 -0
  166. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/connect.md +0 -0
  167. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/device.md +0 -0
  168. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/discover.md +0 -0
  169. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/energy.md +0 -0
  170. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/feature.md +0 -0
  171. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/light.md +0 -0
  172. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides/module.md +0 -0
  173. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/guides.md +0 -0
  174. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/index.md +0 -0
  175. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/library.md +0 -0
  176. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/reference.md +0 -0
  177. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/smartbulb.rst +0 -0
  178. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/smartdevice.rst +0 -0
  179. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/smartdimmer.rst +0 -0
  180. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/smartlightstrip.rst +0 -0
  181. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/smartplug.rst +0 -0
  182. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/smartstrip.rst +0 -0
  183. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/topics.md +0 -0
  184. {python_kasa-0.9.1 → python_kasa-0.10.0}/docs/source/tutorial.md +0 -0
  185. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/__init__.py +0 -0
  186. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cachedzoneinfo.py +0 -0
  187. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/__init__.py +0 -0
  188. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/__main__.py +0 -0
  189. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/light.py +0 -0
  190. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/schedule.py +0 -0
  191. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/time.py +0 -0
  192. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/usage.py +0 -0
  193. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/cli/wifi.py +0 -0
  194. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/credentials.py +0 -0
  195. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/emeterstatus.py +0 -0
  196. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/httpclient.py +0 -0
  197. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/energy.py +0 -0
  198. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/fan.py +0 -0
  199. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/led.py +0 -0
  200. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/lighteffect.py +0 -0
  201. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/lightpreset.py +0 -0
  202. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/thermostat.py +0 -0
  203. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/interfaces/time.py +0 -0
  204. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/__init__.py +0 -0
  205. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/effects.py +0 -0
  206. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotbulb.py +0 -0
  207. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotcamera.py +0 -0
  208. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotdevice.py +0 -0
  209. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotlightstrip.py +0 -0
  210. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotmodule.py +0 -0
  211. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iotplug.py +0 -0
  212. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/iottimezone.py +0 -0
  213. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/__init__.py +0 -0
  214. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/ambientlight.py +0 -0
  215. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/antitheft.py +0 -0
  216. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/cloud.py +0 -0
  217. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/countdown.py +0 -0
  218. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/emeter.py +0 -0
  219. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/led.py +0 -0
  220. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/lighteffect.py +0 -0
  221. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/rulemodule.py +0 -0
  222. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/schedule.py +0 -0
  223. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/time.py +0 -0
  224. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/iot/modules/usage.py +0 -0
  225. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/json.py +0 -0
  226. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/modulemapping.py +0 -0
  227. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/modulemapping.pyi +0 -0
  228. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/protocols/__init__.py +0 -0
  229. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/protocols/protocol.py +0 -0
  230. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/py.typed +0 -0
  231. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/__init__.py +0 -0
  232. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/effects.py +0 -0
  233. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/autooff.py +0 -0
  234. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/brightness.py +0 -0
  235. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/childprotection.py +0 -0
  236. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/cloud.py +0 -0
  237. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/color.py +0 -0
  238. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/colortemperature.py +0 -0
  239. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/contactsensor.py +0 -0
  240. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/fan.py +0 -0
  241. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/firmware.py +0 -0
  242. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/frostprotection.py +0 -0
  243. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/homekit.py +0 -0
  244. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/humiditysensor.py +0 -0
  245. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/led.py +0 -0
  246. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/lighteffect.py +0 -0
  247. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/lightpreset.py +0 -0
  248. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/lightstripeffect.py +0 -0
  249. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/lighttransition.py +0 -0
  250. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/matter.py +0 -0
  251. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/motionsensor.py +0 -0
  252. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/overheatprotection.py +0 -0
  253. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/reportmode.py +0 -0
  254. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/temperaturecontrol.py +0 -0
  255. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/temperaturesensor.py +0 -0
  256. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/thermostat.py +0 -0
  257. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/time.py +0 -0
  258. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/triggerlogs.py +0 -0
  259. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smart/modules/waterleaksensor.py +0 -0
  260. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/homekit.py +0 -0
  261. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/matter.py +0 -0
  262. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/smartcam/modules/pantilt.py +0 -0
  263. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/__init__.py +0 -0
  264. {python_kasa-0.9.1 → python_kasa-0.10.0}/kasa/transports/basetransport.py +0 -0
  265. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/__init__.py +0 -0
  266. {python_kasa-0.9.1/tests/iot → python_kasa-0.10.0/tests/cli}/__init__.py +0 -0
  267. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/EP10(US)_1.0_1.0.2.json +0 -0
  268. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/EP40(US)_1.0_1.0.2.json +0 -0
  269. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/ES20M(US)_1.0_1.0.11.json +0 -0
  270. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/ES20M(US)_1.0_1.0.8.json +0 -0
  271. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(UK)_1.0_1.2.6.json +0 -0
  272. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(UK)_4.1_1.1.0.json +0 -0
  273. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(US)_1.0_1.2.5.json +0 -0
  274. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS100(US)_2.0_1.5.6.json +0 -0
  275. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS103(US)_1.0_1.5.7.json +0 -0
  276. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS103(US)_2.1_1.1.2.json +0 -0
  277. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS103(US)_2.1_1.1.4.json +0 -0
  278. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS105(US)_1.0_1.5.6.json +0 -0
  279. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS107(US)_1.0_1.0.8.json +0 -0
  280. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS110(EU)_1.0_1.2.5.json +0 -0
  281. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS110(EU)_4.0_1.0.4.json +0 -0
  282. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS110(US)_1.0_1.2.6.json +0 -0
  283. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_2.0_1.5.7.json +0 -0
  284. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_3.0_1.1.5.json +0 -0
  285. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_5.0_1.0.11.json +0 -0
  286. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS200(US)_5.0_1.0.2.json +0 -0
  287. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS210(US)_1.0_1.5.8.json +0 -0
  288. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS210(US)_2.0_1.1.5.json +0 -0
  289. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS210(US)_3.0_1.0.10.json +0 -0
  290. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS220(US)_1.0_1.5.7.json +0 -0
  291. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS220(US)_2.0_1.0.3.json +0 -0
  292. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_1.0_1.0.10.json +0 -0
  293. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_1.0_1.0.21.json +0 -0
  294. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_2.0_1.0.12.json +0 -0
  295. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/HS300(US)_2.0_1.0.3.json +0 -0
  296. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL110(US)_1.0_1.8.11.json +0 -0
  297. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL120(US)_1.0_1.8.11.json +0 -0
  298. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL120(US)_1.0_1.8.6.json +0 -0
  299. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL125(US)_1.20_1.0.5.json +0 -0
  300. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL125(US)_2.0_1.0.7.json +0 -0
  301. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL125(US)_4.0_1.0.5.json +0 -0
  302. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL130(EU)_1.0_1.8.8.json +0 -0
  303. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL130(US)_1.0_1.8.11.json +0 -0
  304. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL135(US)_1.0_1.0.15.json +0 -0
  305. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL135(US)_1.0_1.0.6.json +0 -0
  306. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.5.json +0 -0
  307. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL400L5(US)_1.0_1.0.8.json +0 -0
  308. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL420L5(US)_1.0_1.0.2.json +0 -0
  309. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(UN)_2.0_1.0.8.json +0 -0
  310. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_1.0_1.0.10.json +0 -0
  311. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.11.json +0 -0
  312. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.8.json +0 -0
  313. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL430(US)_2.0_1.0.9.json +0 -0
  314. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL50(US)_1.0_1.1.13.json +0 -0
  315. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL60(UN)_1.0_1.1.4.json +0 -0
  316. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KL60(US)_1.0_1.1.13.json +0 -0
  317. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP100(US)_3.0_1.0.1.json +0 -0
  318. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP105(UK)_1.0_1.0.5.json +0 -0
  319. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP105(UK)_1.0_1.0.7.json +0 -0
  320. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP115(EU)_1.0_1.0.16.json +0 -0
  321. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP115(US)_1.0_1.0.17.json +0 -0
  322. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP115(US)_1.0_1.0.21.json +0 -0
  323. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP125(US)_1.0_1.0.6.json +0 -0
  324. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP200(US)_3.0_1.0.3.json +0 -0
  325. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP303(UK)_1.0_1.0.3.json +0 -0
  326. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP303(US)_2.0_1.0.3.json +0 -0
  327. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP303(US)_2.0_1.0.9.json +0 -0
  328. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_1.0_1.0.10.json +0 -0
  329. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_2.0_1.0.6.json +0 -0
  330. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_3.0_1.0.3.json +0 -0
  331. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP400(US)_3.0_1.0.4.json +0 -0
  332. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP401(US)_1.0_1.0.0.json +0 -0
  333. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP405(US)_1.0_1.0.5.json +0 -0
  334. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KP405(US)_1.0_1.0.6.json +0 -0
  335. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS200(US)_1.0_1.0.8.json +0 -0
  336. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.10.json +0 -0
  337. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.11.json +0 -0
  338. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.12.json +0 -0
  339. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS200M(US)_1.0_1.0.8.json +0 -0
  340. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS220(US)_1.0_1.0.13.json +0 -0
  341. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS220M(US)_1.0_1.0.4.json +0 -0
  342. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/KS230(US)_1.0_1.0.14.json +0 -0
  343. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iot/LB110(US)_1.0_1.8.11.json +0 -0
  344. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/iotcam/EC60(US)_4.0_2.3.22.json +0 -0
  345. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
  346. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
  347. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/EP40M(US)_1.0_1.1.0.json +0 -0
  348. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
  349. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
  350. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/HS200(US)_5.26_1.0.3.json +0 -0
  351. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +0 -0
  352. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KH100(EU)_1.0_1.2.3.json +0 -0
  353. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KH100(EU)_1.0_1.5.12.json +0 -0
  354. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
  355. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
  356. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KP125M(US)_1.0_1.2.3.json +0 -0
  357. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
  358. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +0 -0
  359. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
  360. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +0 -0
  361. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
  362. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
  363. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/KS240(US)_1.0_1.0.7.json +0 -0
  364. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
  365. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
  366. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
  367. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
  368. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
  369. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
  370. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
  371. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L630(EU)_1.0_1.1.2.json +0 -0
  372. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
  373. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
  374. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
  375. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
  376. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
  377. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +0 -0
  378. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
  379. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
  380. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
  381. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P100(US)_1.0.0_1.1.3.json +0 -0
  382. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P100(US)_1.0.0_1.3.7.json +0 -0
  383. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P100(US)_1.0.0_1.4.0.json +0 -0
  384. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
  385. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
  386. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
  387. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P110M(AU)_1.0_1.2.3.json +0 -0
  388. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P110M(EU)_1.0_1.2.3.json +0 -0
  389. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
  390. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P115(US)_1.0_1.1.3.json +0 -0
  391. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
  392. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
  393. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P135(US)_1.0_1.2.0.json +0 -0
  394. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P210M(US)_1.0_1.0.3.json +0 -0
  395. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
  396. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
  397. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
  398. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P304M(UK)_1.0_1.0.3.json +0 -0
  399. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/P306(US)_1.0_1.1.2.json +0 -0
  400. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
  401. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
  402. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
  403. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
  404. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
  405. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
  406. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
  407. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
  408. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200B(EU)_1.0_1.11.0.json +0 -0
  409. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200B(US)_1.0_1.12.0.json +0 -0
  410. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200D(EU)_1.0_1.11.0.json +0 -0
  411. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/S200D(EU)_1.0_1.12.0.json +0 -0
  412. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/S210(EU)_1.0_1.9.0.json +0 -0
  413. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/S220(EU)_1.0_1.9.0.json +0 -0
  414. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +0 -0
  415. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
  416. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T110(EU)_1.0_1.9.0.json +0 -0
  417. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T110(US)_1.0_1.9.0.json +0 -0
  418. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
  419. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T310(US)_1.0_1.5.0.json +0 -0
  420. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smart/child/T315(US)_1.0_1.8.0.json +0 -0
  421. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/C100_4.0_1.3.14.json +0 -0
  422. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.2.json +0 -0
  423. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/C210(EU)_2.0_1.4.3.json +0 -0
  424. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/C210_2.0_1.3.11.json +0 -0
  425. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/C225(US)_2.0_1.0.11.json +0 -0
  426. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/C325WB(EU)_1.0_1.1.17.json +0 -0
  427. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/C520WS(US)_1.0_1.2.8.json +0 -0
  428. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/H200(EU)_1.0_1.3.2.json +0 -0
  429. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/H200(US)_1.0_1.3.6.json +0 -0
  430. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/TC65_1.0_1.3.9.json +0 -0
  431. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/fixtures/smartcam/TC70_3.0_1.3.11.json +0 -0
  432. {python_kasa-0.9.1/tests/iot/modules → python_kasa-0.10.0/tests/iot}/__init__.py +0 -0
  433. {python_kasa-0.9.1/tests/protocols → python_kasa-0.10.0/tests/iot/modules}/__init__.py +0 -0
  434. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/modules/test_ambientlight.py +0 -0
  435. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/modules/test_cloud.py +0 -0
  436. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/modules/test_emeter.py +0 -0
  437. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/modules/test_schedule.py +0 -0
  438. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/modules/test_usage.py +0 -0
  439. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/test_iotbulb.py +0 -0
  440. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/test_iotdimmer.py +0 -0
  441. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/test_iotlightstrip.py +0 -0
  442. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/iot/test_wallswitch.py +0 -0
  443. {python_kasa-0.9.1/tests/smart → python_kasa-0.10.0/tests/protocols}/__init__.py +0 -0
  444. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/protocols/test_iotprotocol.py +0 -0
  445. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/protocols/test_smartprotocol.py +0 -0
  446. {python_kasa-0.9.1/tests/smart/features → python_kasa-0.10.0/tests/smart}/__init__.py +0 -0
  447. {python_kasa-0.9.1/tests/smart/modules → python_kasa-0.10.0/tests/smart/features}/__init__.py +0 -0
  448. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/features/test_brightness.py +0 -0
  449. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/features/test_colortemp.py +0 -0
  450. {python_kasa-0.9.1/tests/smartcam → python_kasa-0.10.0/tests/smart/modules}/__init__.py +0 -0
  451. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_autooff.py +0 -0
  452. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_childprotection.py +0 -0
  453. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_contact.py +0 -0
  454. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_energy.py +0 -0
  455. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_fan.py +0 -0
  456. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_firmware.py +0 -0
  457. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_homekit.py +0 -0
  458. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_humidity.py +0 -0
  459. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_light_effect.py +0 -0
  460. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_light_strip_effect.py +0 -0
  461. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_lighttransition.py +0 -0
  462. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_matter.py +0 -0
  463. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_motionsensor.py +0 -0
  464. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_temperature.py +0 -0
  465. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_temperaturecontrol.py +0 -0
  466. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_triggerlogs.py +0 -0
  467. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smart/modules/test_waterleak.py +0 -0
  468. {python_kasa-0.9.1/tests/smartcam/modules → python_kasa-0.10.0/tests/smartcam}/__init__.py +0 -0
  469. {python_kasa-0.9.1/tests/transports → python_kasa-0.10.0/tests/smartcam/modules}/__init__.py +0 -0
  470. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smartcam/modules/test_babycrydetection.py +0 -0
  471. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smartcam/modules/test_motiondetection.py +0 -0
  472. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smartcam/modules/test_persondetection.py +0 -0
  473. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/smartcam/modules/test_tamperdetection.py +0 -0
  474. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_childdevice.py +0 -0
  475. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_common_modules.py +0 -0
  476. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_device_type.py +0 -0
  477. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_deviceconfig.py +0 -0
  478. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_httpclient.py +0 -0
  479. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_plug.py +0 -0
  480. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/test_strip.py +0 -0
  481. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/transports/test_klaptransport.py +0 -0
  482. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/transports/test_linkietransport.py +0 -0
  483. {python_kasa-0.9.1 → python_kasa-0.10.0}/tests/transports/test_ssltransport.py +0 -0
@@ -1,5 +1,97 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.0](https://github.com/python-kasa/python-kasa/tree/0.10.0) (2025-01-26)
4
+
5
+ [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.9.1...0.10.0)
6
+
7
+ **Release summary:**
8
+
9
+ This release brings support for many new devices, including completely new device types:
10
+
11
+ - Support for Tapo robot vacuums. Special thanks to @steveredden, @MAXIGAMESSUPPER, and veep60 for helping to get this implemented!
12
+ - Support for hub attached cameras and doorbells (H200)
13
+ - Improved support for hubs (including pairing & better chime controls)
14
+ - Support for many new camera and doorbell device models, including C220, C720, D100C, D130, and D230
15
+
16
+ Many thanks to testers and new contributors - @steveredden, @DawidPietrykowski, @Obbay2, @andrewome, @ryenitcher and @etmmvdp!
17
+
18
+ **Breaking changes:**
19
+
20
+ - `uses_http` is now a readonly property of device config. Consumers that relied on `uses_http` to be persisted with `DeviceConfig.to_dict()` will need to store the value separately.
21
+ - `is_color`, `is_dimmable`, `is_variable_color_temp`, `valid_temperate_range`, and `has_effects` attributes from the `Light` module are deprecated, consumers should use `has_feature("hsv")`, `has_feature("brightness")`, `has_feature("color_temp")`, `get_feature("color_temp").range`, and `Module.LightEffect in dev.modules` respectively. Calling the deprecated attributes will emit a `DeprecationWarning` and type checkers will fail them.
22
+ - `alarm_volume` on the `smart.Alarm` module is changed from `str` to `int`
23
+
24
+ **Breaking changes:**
25
+
26
+ - Make uses\_http a readonly property of device config [\#1449](https://github.com/python-kasa/python-kasa/pull/1449) (@sdb9696)
27
+ - Allow passing alarm parameter overrides [\#1340](https://github.com/python-kasa/python-kasa/pull/1340) (@rytilahti)
28
+ - Deprecate legacy light module is\_capability checks [\#1297](https://github.com/python-kasa/python-kasa/pull/1297) (@sdb9696)
29
+
30
+ **Implemented enhancements:**
31
+
32
+ - Expose more battery sensors for D230 [\#1451](https://github.com/python-kasa/python-kasa/issues/1451)
33
+ - dumping HTTP POST Body for Tapo Vacuum \(RV30 Plus\) [\#937](https://github.com/python-kasa/python-kasa/issues/937)
34
+ - Add common alarm interface [\#1479](https://github.com/python-kasa/python-kasa/pull/1479) (@sdb9696)
35
+ - Add common childsetup interface [\#1470](https://github.com/python-kasa/python-kasa/pull/1470) (@sdb9696)
36
+ - Add childsetup module to smartcam hubs [\#1469](https://github.com/python-kasa/python-kasa/pull/1469) (@sdb9696)
37
+ - Add smartcam pet detection toggle module [\#1465](https://github.com/python-kasa/python-kasa/pull/1465) (@DawidPietrykowski)
38
+ - Only log one warning per unknown clean error code and status [\#1462](https://github.com/python-kasa/python-kasa/pull/1462) (@rytilahti)
39
+ - Add childlock module for vacuums [\#1461](https://github.com/python-kasa/python-kasa/pull/1461) (@rytilahti)
40
+ - Add ultra mode \(fanspeed = 5\) for vacuums [\#1459](https://github.com/python-kasa/python-kasa/pull/1459) (@rytilahti)
41
+ - Add setting to change carpet clean mode [\#1458](https://github.com/python-kasa/python-kasa/pull/1458) (@rytilahti)
42
+ - Add setting to change clean count [\#1457](https://github.com/python-kasa/python-kasa/pull/1457) (@rytilahti)
43
+ - Add mop module [\#1456](https://github.com/python-kasa/python-kasa/pull/1456) (@rytilahti)
44
+ - Enable dynamic hub child creation and deletion on update [\#1454](https://github.com/python-kasa/python-kasa/pull/1454) (@sdb9696)
45
+ - Expose current cleaning information [\#1453](https://github.com/python-kasa/python-kasa/pull/1453) (@rytilahti)
46
+ - Add battery module to smartcam devices [\#1452](https://github.com/python-kasa/python-kasa/pull/1452) (@sdb9696)
47
+ - Allow update of camera modules after setting values [\#1450](https://github.com/python-kasa/python-kasa/pull/1450) (@sdb9696)
48
+ - Update hub children on first update and delay subsequent updates [\#1438](https://github.com/python-kasa/python-kasa/pull/1438) (@sdb9696)
49
+ - Add support for doorbells and chimes [\#1435](https://github.com/python-kasa/python-kasa/pull/1435) (@steveredden)
50
+ - Implement vacuum dustbin module \(dust\_bucket\) [\#1423](https://github.com/python-kasa/python-kasa/pull/1423) (@rytilahti)
51
+ - Allow https for klaptransport [\#1415](https://github.com/python-kasa/python-kasa/pull/1415) (@rytilahti)
52
+ - Add smartcam child device support for smartcam hubs [\#1413](https://github.com/python-kasa/python-kasa/pull/1413) (@sdb9696)
53
+ - Add powerprotection module [\#1337](https://github.com/python-kasa/python-kasa/pull/1337) (@rytilahti)
54
+ - Add vacuum speaker controls [\#1332](https://github.com/python-kasa/python-kasa/pull/1332) (@rytilahti)
55
+ - Add consumables module for vacuums [\#1327](https://github.com/python-kasa/python-kasa/pull/1327) (@rytilahti)
56
+ - Add ADC Value to PIR Enabled Switches [\#1263](https://github.com/python-kasa/python-kasa/pull/1263) (@ryenitcher)
57
+ - Add support for cleaning records [\#945](https://github.com/python-kasa/python-kasa/pull/945) (@rytilahti)
58
+ - Initial support for vacuums \(clean module\) [\#944](https://github.com/python-kasa/python-kasa/pull/944) (@rytilahti)
59
+ - Add support for pairing devices with hubs [\#859](https://github.com/python-kasa/python-kasa/pull/859) (@rytilahti)
60
+
61
+ **Fixed bugs:**
62
+
63
+ - TP-Link HS300 Wi-Fi Power-Strip - "Parent On/Off" not functioning. [\#637](https://github.com/python-kasa/python-kasa/issues/637)
64
+ - Convert carpet\_clean\_mode to carpet\_boost switch [\#1486](https://github.com/python-kasa/python-kasa/pull/1486) (@rytilahti)
65
+ - Change category for empty dustbin feature from Primary to Config [\#1485](https://github.com/python-kasa/python-kasa/pull/1485) (@rytilahti)
66
+ - Report 0 for instead of None for zero current and voltage [\#1483](https://github.com/python-kasa/python-kasa/pull/1483) (@ryenitcher)
67
+ - Disable iot camera creation until more complete [\#1480](https://github.com/python-kasa/python-kasa/pull/1480) (@sdb9696)
68
+ - ssltransport: use debug logger for sending requests [\#1443](https://github.com/python-kasa/python-kasa/pull/1443) (@rytilahti)
69
+ - Fix discover cli command with host [\#1437](https://github.com/python-kasa/python-kasa/pull/1437) (@sdb9696)
70
+ - Fallback to is\_low for batterysensor's battery\_low [\#1420](https://github.com/python-kasa/python-kasa/pull/1420) (@rytilahti)
71
+ - Fix iot strip turn on and off from parent [\#639](https://github.com/python-kasa/python-kasa/pull/639) (@Obbay2)
72
+
73
+ **Added support for devices:**
74
+
75
+ - Add D130\(US\) 1.0 1.1.9 fixture [\#1476](https://github.com/python-kasa/python-kasa/pull/1476) (@sdb9696)
76
+ - Add D100C\(US\) 1.0 1.1.3 fixture [\#1475](https://github.com/python-kasa/python-kasa/pull/1475) (@sdb9696)
77
+ - Add C220\(EU\) 1.0 1.2.2 camera fixture [\#1466](https://github.com/python-kasa/python-kasa/pull/1466) (@DawidPietrykowski)
78
+ - Add D230\(EU\) 1.20 1.1.19 fixture [\#1448](https://github.com/python-kasa/python-kasa/pull/1448) (@sdb9696)
79
+ - Add fixture for C720 camera [\#1433](https://github.com/python-kasa/python-kasa/pull/1433) (@steveredden)
80
+
81
+ **Project maintenance:**
82
+
83
+ - Update ruff to 0.9 [\#1482](https://github.com/python-kasa/python-kasa/pull/1482) (@sdb9696)
84
+ - Cancel in progress CI workflows after new pushes [\#1481](https://github.com/python-kasa/python-kasa/pull/1481) (@sdb9696)
85
+ - Update test framework to support smartcam device discovery. [\#1477](https://github.com/python-kasa/python-kasa/pull/1477) (@sdb9696)
86
+ - Add error code 7 for clean module [\#1474](https://github.com/python-kasa/python-kasa/pull/1474) (@rytilahti)
87
+ - Enable CI workflow on PRs to feat/ fix/ and janitor/ [\#1471](https://github.com/python-kasa/python-kasa/pull/1471) (@sdb9696)
88
+ - Add commit-hook to prettify JSON files [\#1455](https://github.com/python-kasa/python-kasa/pull/1455) (@rytilahti)
89
+ - Add required sphinx.configuration [\#1446](https://github.com/python-kasa/python-kasa/pull/1446) (@rytilahti)
90
+ - Add more redactors for smartcams [\#1439](https://github.com/python-kasa/python-kasa/pull/1439) (@sdb9696)
91
+ - Add KS230\(US\) 2.0 1.0.11 IOT Fixture [\#1430](https://github.com/python-kasa/python-kasa/pull/1430) (@ZeliardM)
92
+ - Add tests for dump\_devinfo parent/child smartcam fixture generation [\#1428](https://github.com/python-kasa/python-kasa/pull/1428) (@sdb9696)
93
+ - Raise errors on single smartcam child requests [\#1427](https://github.com/python-kasa/python-kasa/pull/1427) (@sdb9696)
94
+
3
95
  ## [0.9.1](https://github.com/python-kasa/python-kasa/tree/0.9.1) (2025-01-06)
4
96
 
5
97
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.9.0...0.9.1)
@@ -19,8 +111,8 @@
19
111
  **Fixed bugs:**
20
112
 
21
113
  - T310 not detected with H200 Hub [\#1409](https://github.com/python-kasa/python-kasa/issues/1409)
22
- - Backoff after xor timeout and improve error reporting [\#1424](https://github.com/python-kasa/python-kasa/pull/1424) (@bdraco)
23
114
  - Fix incorrect obd src echo [\#1412](https://github.com/python-kasa/python-kasa/pull/1412) (@rytilahti)
115
+ - Backoff after xor timeout and improve error reporting [\#1424](https://github.com/python-kasa/python-kasa/pull/1424) (@bdraco)
24
116
  - Handle smartcam partial list responses [\#1411](https://github.com/python-kasa/python-kasa/pull/1411) (@sdb9696)
25
117
 
26
118
  **Added support for devices:**
@@ -34,8 +126,8 @@
34
126
 
35
127
  **Project maintenance:**
36
128
 
37
- - Add C210 2.0 1.3.11 fixture [\#1406](https://github.com/python-kasa/python-kasa/pull/1406) (@sdb9696)
38
129
  - Add HS210\(US\) 3.0 1.0.10 IOT Fixture [\#1405](https://github.com/python-kasa/python-kasa/pull/1405) (@ZeliardM)
130
+ - Add C210 2.0 1.3.11 fixture [\#1406](https://github.com/python-kasa/python-kasa/pull/1406) (@sdb9696)
39
131
  - Change smartcam detection features to category config [\#1402](https://github.com/python-kasa/python-kasa/pull/1402) (@sdb9696)
40
132
 
41
133
  ## [0.9.0](https://github.com/python-kasa/python-kasa/tree/0.9.0) (2024-12-21)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-kasa
3
- Version: 0.9.1
3
+ Version: 0.10.0
4
4
  Summary: Python API for TP-Link Kasa and Tapo devices
5
5
  Project-URL: Homepage, https://github.com/python-kasa/python-kasa
6
6
  Project-URL: Bug Tracker, https://github.com/python-kasa/python-kasa/issues
@@ -238,7 +238,9 @@ The following devices have been tested and confirmed as working. If your device
238
238
  - **Wall Switches**: S210, S220, S500D, S505, S505D
239
239
  - **Bulbs**: L510B, L510E, L530E, L630
240
240
  - **Light Strips**: L900-10, L900-5, L920-5, L930-5
241
- - **Cameras**: C100, C210, C225, C325WB, C520WS, TC65, TC70
241
+ - **Cameras**: C100, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70
242
+ - **Doorbells and chimes**: D100C, D130, D230
243
+ - **Vacuums**: RV20 Max Plus, RV30 Max
242
244
  - **Hubs**: H100, H200
243
245
  - **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
244
246
 
@@ -201,7 +201,9 @@ The following devices have been tested and confirmed as working. If your device
201
201
  - **Wall Switches**: S210, S220, S500D, S505, S505D
202
202
  - **Bulbs**: L510B, L510E, L530E, L630
203
203
  - **Light Strips**: L900-10, L900-5, L920-5, L930-5
204
- - **Cameras**: C100, C210, C225, C325WB, C520WS, TC65, TC70
204
+ - **Cameras**: C100, C210, C220, C225, C325WB, C520WS, C720, TC65, TC70
205
+ - **Doorbells and chimes**: D100C, D130, D230
206
+ - **Vacuums**: RV20 Max Plus, RV30 Max
205
207
  - **Hubs**: H100, H200
206
208
  - **Hub-Connected Devices[^3]**: S200B, S200D, T100, T110, T300, T310, T315
207
209
 
@@ -54,7 +54,8 @@ from kasa.protocols.smartcamprotocol import (
54
54
  from kasa.protocols.smartprotocol import REDACTORS as SMART_REDACTORS
55
55
  from kasa.protocols.smartprotocol import SmartProtocol, _ChildProtocolWrapper
56
56
  from kasa.smart import SmartChildDevice, SmartDevice
57
- from kasa.smartcam import SmartCamDevice
57
+ from kasa.smartcam import SmartCamChild, SmartCamDevice
58
+ from kasa.smartcam.smartcamchild import CHILD_INFO_FROM_PARENT
58
59
 
59
60
  Call = namedtuple("Call", "module method")
60
61
  FixtureResult = namedtuple("FixtureResult", "filename, folder, data, protocol_suffix")
@@ -62,11 +63,13 @@ FixtureResult = namedtuple("FixtureResult", "filename, folder, data, protocol_su
62
63
  SMART_FOLDER = "tests/fixtures/smart/"
63
64
  SMARTCAM_FOLDER = "tests/fixtures/smartcam/"
64
65
  SMART_CHILD_FOLDER = "tests/fixtures/smart/child/"
66
+ SMARTCAM_CHILD_FOLDER = "tests/fixtures/smartcam/child/"
65
67
  IOT_FOLDER = "tests/fixtures/iot/"
66
68
 
67
69
  SMART_PROTOCOL_SUFFIX = "SMART"
68
70
  SMARTCAM_SUFFIX = "SMARTCAM"
69
71
  SMART_CHILD_SUFFIX = "SMART.CHILD"
72
+ SMARTCAM_CHILD_SUFFIX = "SMARTCAM.CHILD"
70
73
  IOT_SUFFIX = "IOT"
71
74
 
72
75
  NO_GIT_FIXTURE_FOLDER = "kasa-fixtures"
@@ -297,7 +300,9 @@ async def cli(
297
300
  connection_type = DeviceConnectionParameters.from_values(
298
301
  dr.device_type,
299
302
  dr.mgt_encrypt_schm.encrypt_type,
300
- dr.mgt_encrypt_schm.lv,
303
+ login_version=dr.mgt_encrypt_schm.lv,
304
+ https=dr.mgt_encrypt_schm.is_support_https,
305
+ http_port=dr.mgt_encrypt_schm.http_port,
301
306
  )
302
307
  dc = DeviceConfig(
303
308
  host=host,
@@ -844,9 +849,8 @@ async def get_smart_test_calls(protocol: SmartProtocol):
844
849
  return test_calls, successes
845
850
 
846
851
 
847
- def get_smart_child_fixture(response):
852
+ def get_smart_child_fixture(response, model_info, folder, suffix):
848
853
  """Get a seperate fixture for the child device."""
849
- model_info = SmartDevice._get_device_info(response, None)
850
854
  hw_version = model_info.hardware_version
851
855
  fw_version = model_info.firmware_version
852
856
  model = model_info.long_name
@@ -855,12 +859,68 @@ def get_smart_child_fixture(response):
855
859
  save_filename = f"{model}_{hw_version}_{fw_version}"
856
860
  return FixtureResult(
857
861
  filename=save_filename,
858
- folder=SMART_CHILD_FOLDER,
862
+ folder=folder,
859
863
  data=response,
860
- protocol_suffix=SMART_CHILD_SUFFIX,
864
+ protocol_suffix=suffix,
861
865
  )
862
866
 
863
867
 
868
+ def scrub_child_device_ids(
869
+ main_response: dict, child_responses: dict
870
+ ) -> dict[str, str]:
871
+ """Scrub all the child device ids in the responses."""
872
+ # Make the scrubbed id map
873
+ scrubbed_child_id_map = {
874
+ device_id: f"SCRUBBED_CHILD_DEVICE_ID_{index + 1}"
875
+ for index, device_id in enumerate(child_responses.keys())
876
+ if device_id != ""
877
+ }
878
+
879
+ for child_id, response in child_responses.items():
880
+ scrubbed_child_id = scrubbed_child_id_map[child_id]
881
+ # scrub the device id in the child's get info response
882
+ # The checks for the device_id will ensure we can get a fixture
883
+ # even if the data is unexpectedly not available although it should
884
+ # always be there
885
+ if "get_device_info" in response and "device_id" in response["get_device_info"]:
886
+ response["get_device_info"]["device_id"] = scrubbed_child_id
887
+ elif (
888
+ basic_info := response.get("getDeviceInfo", {})
889
+ .get("device_info", {})
890
+ .get("basic_info")
891
+ ) and "dev_id" in basic_info:
892
+ basic_info["dev_id"] = scrubbed_child_id
893
+ else:
894
+ _LOGGER.error(
895
+ "Cannot find device id in child get device info: %s", child_id
896
+ )
897
+
898
+ # Scrub the device ids in the parent for smart protocol
899
+ if gc := main_response.get("get_child_device_component_list"):
900
+ for child in gc["child_component_list"]:
901
+ device_id = child["device_id"]
902
+ child["device_id"] = scrubbed_child_id_map[device_id]
903
+ for child in main_response["get_child_device_list"]["child_device_list"]:
904
+ device_id = child["device_id"]
905
+ child["device_id"] = scrubbed_child_id_map[device_id]
906
+
907
+ # Scrub the device ids in the parent for the smart camera protocol
908
+ if gc := main_response.get("getChildDeviceComponentList"):
909
+ for child in gc["child_component_list"]:
910
+ device_id = child["device_id"]
911
+ child["device_id"] = scrubbed_child_id_map[device_id]
912
+ for child in main_response["getChildDeviceList"]["child_device_list"]:
913
+ if device_id := child.get("device_id"):
914
+ child["device_id"] = scrubbed_child_id_map[device_id]
915
+ continue
916
+ elif dev_id := child.get("dev_id"):
917
+ child["dev_id"] = scrubbed_child_id_map[dev_id]
918
+ continue
919
+ _LOGGER.error("Could not find a device id for the child device: %s", child)
920
+
921
+ return scrubbed_child_id_map
922
+
923
+
864
924
  async def get_smart_fixtures(
865
925
  protocol: SmartProtocol,
866
926
  *,
@@ -917,21 +977,19 @@ async def get_smart_fixtures(
917
977
  finally:
918
978
  await protocol.close()
919
979
 
980
+ # Put all the successes into a dict[child_device_id or "", successes[]]
920
981
  device_requests: dict[str, list[SmartCall]] = {}
921
982
  for success in successes:
922
983
  device_request = device_requests.setdefault(success.child_device_id, [])
923
984
  device_request.append(success)
924
985
 
925
- scrubbed_device_ids = {
926
- device_id: f"SCRUBBED_CHILD_DEVICE_ID_{index}"
927
- for index, device_id in enumerate(device_requests.keys())
928
- if device_id != ""
929
- }
930
-
931
986
  final = await _make_final_calls(
932
987
  protocol, device_requests[""], "All successes", batch_size, child_device_id=""
933
988
  )
934
989
  fixture_results = []
990
+
991
+ # Make the final child calls
992
+ child_responses = {}
935
993
  for child_device_id, requests in device_requests.items():
936
994
  if child_device_id == "":
937
995
  continue
@@ -942,55 +1000,82 @@ async def get_smart_fixtures(
942
1000
  batch_size,
943
1001
  child_device_id=child_device_id,
944
1002
  )
1003
+ child_responses[child_device_id] = response
945
1004
 
946
- scrubbed = scrubbed_device_ids[child_device_id]
947
- if "get_device_info" in response and "device_id" in response["get_device_info"]:
948
- response["get_device_info"]["device_id"] = scrubbed
949
- # If the child is a different model to the parent create a seperate fixture
950
- if "get_device_info" in final:
951
- parent_model = final["get_device_info"]["model"]
952
- elif "getDeviceInfo" in final:
953
- parent_model = final["getDeviceInfo"]["device_info"]["basic_info"][
954
- "device_model"
955
- ]
1005
+ # scrub the child ids
1006
+ scrubbed_child_id_map = scrub_child_device_ids(final, child_responses)
1007
+
1008
+ # Redact data from the main device response. _wrap_redactors ensure we do
1009
+ # not redact the scrubbed child device ids and replaces REDACTED_partial_id
1010
+ # with zeros
1011
+ final = redact_data(final, _wrap_redactors(SMART_REDACTORS))
1012
+
1013
+ # smart cam child devices provide more information in getChildDeviceList on the
1014
+ # parent than they return when queried directly for getDeviceInfo so we will store
1015
+ # it in the child fixture.
1016
+ if smart_cam_child_list := final.get("getChildDeviceList"):
1017
+ child_infos_on_parent = {
1018
+ info["device_id"]: info
1019
+ for info in smart_cam_child_list["child_device_list"]
1020
+ }
1021
+
1022
+ for child_id, response in child_responses.items():
1023
+ scrubbed_child_id = scrubbed_child_id_map[child_id]
1024
+
1025
+ # Get the parent model for checking whether to create a seperate child fixture
1026
+ if model := final.get("get_device_info", {}).get("model"):
1027
+ parent_model = model
1028
+ elif (
1029
+ device_model := final.get("getDeviceInfo", {})
1030
+ .get("device_info", {})
1031
+ .get("basic_info", {})
1032
+ .get("device_model")
1033
+ ):
1034
+ parent_model = device_model
956
1035
  else:
957
- raise KasaException("Cannot determine parent device model.")
1036
+ parent_model = None
1037
+ _LOGGER.error("Cannot determine parent device model.")
1038
+
1039
+ # different model smart child device
958
1040
  if (
959
- "component_nego" in response
960
- and "get_device_info" in response
961
- and (child_model := response["get_device_info"].get("model"))
1041
+ (child_model := response.get("get_device_info", {}).get("model"))
1042
+ and parent_model
1043
+ and child_model != parent_model
1044
+ ):
1045
+ response = redact_data(response, _wrap_redactors(SMART_REDACTORS))
1046
+ model_info = SmartDevice._get_device_info(response, None)
1047
+ fixture_results.append(
1048
+ get_smart_child_fixture(
1049
+ response, model_info, SMART_CHILD_FOLDER, SMART_CHILD_SUFFIX
1050
+ )
1051
+ )
1052
+ # different model smartcam child device
1053
+ elif (
1054
+ (
1055
+ child_model := response.get("getDeviceInfo", {})
1056
+ .get("device_info", {})
1057
+ .get("basic_info", {})
1058
+ .get("device_model")
1059
+ )
1060
+ and parent_model
962
1061
  and child_model != parent_model
963
1062
  ):
964
1063
  response = redact_data(response, _wrap_redactors(SMART_REDACTORS))
965
- fixture_results.append(get_smart_child_fixture(response))
1064
+ # There is more info in the childDeviceList on the parent
1065
+ # particularly the region is needed here.
1066
+ child_info_from_parent = child_infos_on_parent[scrubbed_child_id]
1067
+ response[CHILD_INFO_FROM_PARENT] = child_info_from_parent
1068
+ model_info = SmartCamChild._get_device_info(response, None)
1069
+ fixture_results.append(
1070
+ get_smart_child_fixture(
1071
+ response, model_info, SMARTCAM_CHILD_FOLDER, SMARTCAM_CHILD_SUFFIX
1072
+ )
1073
+ )
1074
+ # same model child device
966
1075
  else:
967
1076
  cd = final.setdefault("child_devices", {})
968
- cd[scrubbed] = response
1077
+ cd[scrubbed_child_id] = response
969
1078
 
970
- # Scrub the device ids in the parent for smart protocol
971
- if gc := final.get("get_child_device_component_list"):
972
- for child in gc["child_component_list"]:
973
- device_id = child["device_id"]
974
- child["device_id"] = scrubbed_device_ids[device_id]
975
- for child in final["get_child_device_list"]["child_device_list"]:
976
- device_id = child["device_id"]
977
- child["device_id"] = scrubbed_device_ids[device_id]
978
-
979
- # Scrub the device ids in the parent for the smart camera protocol
980
- if gc := final.get("getChildDeviceComponentList"):
981
- for child in gc["child_component_list"]:
982
- device_id = child["device_id"]
983
- child["device_id"] = scrubbed_device_ids[device_id]
984
- for child in final["getChildDeviceList"]["child_device_list"]:
985
- if device_id := child.get("device_id"):
986
- child["device_id"] = scrubbed_device_ids[device_id]
987
- continue
988
- elif dev_id := child.get("dev_id"):
989
- child["dev_id"] = scrubbed_device_ids[dev_id]
990
- continue
991
- _LOGGER.error("Could not find a device for the child device: %s", child)
992
-
993
- final = redact_data(final, _wrap_redactors(SMART_REDACTORS))
994
1079
  discovery_result = None
995
1080
  if discovery_info:
996
1081
  final["discovery_result"] = redact_data(
@@ -13,7 +13,7 @@ from typing import Any, NamedTuple
13
13
  from kasa.device_type import DeviceType
14
14
  from kasa.iot import IotDevice
15
15
  from kasa.smart import SmartDevice
16
- from kasa.smartcam import SmartCamDevice
16
+ from kasa.smartcam import SmartCamChild, SmartCamDevice
17
17
 
18
18
 
19
19
  class SupportedVersion(NamedTuple):
@@ -36,6 +36,9 @@ DEVICE_TYPE_TO_PRODUCT_GROUP = {
36
36
  DeviceType.Bulb: "Bulbs",
37
37
  DeviceType.LightStrip: "Light Strips",
38
38
  DeviceType.Camera: "Cameras",
39
+ DeviceType.Doorbell: "Doorbells and chimes",
40
+ DeviceType.Chime: "Doorbells and chimes",
41
+ DeviceType.Vacuum: "Vacuums",
39
42
  DeviceType.Hub: "Hubs",
40
43
  DeviceType.Sensor: "Hub-Connected Devices",
41
44
  DeviceType.Thermostat: "Hub-Connected Devices",
@@ -49,6 +52,7 @@ IOT_FOLDER = "tests/fixtures/iot/"
49
52
  SMART_FOLDER = "tests/fixtures/smart/"
50
53
  SMART_CHILD_FOLDER = "tests/fixtures/smart/child"
51
54
  SMARTCAM_FOLDER = "tests/fixtures/smartcam/"
55
+ SMARTCAM_CHILD_FOLDER = "tests/fixtures/smartcam/child"
52
56
 
53
57
 
54
58
  def generate_supported(args):
@@ -66,6 +70,7 @@ def generate_supported(args):
66
70
  _get_supported_devices(supported, SMART_FOLDER, SmartDevice)
67
71
  _get_supported_devices(supported, SMART_CHILD_FOLDER, SmartDevice)
68
72
  _get_supported_devices(supported, SMARTCAM_FOLDER, SmartCamDevice)
73
+ _get_supported_devices(supported, SMARTCAM_CHILD_FOLDER, SmartCamChild)
69
74
 
70
75
  readme_updated = _update_supported_file(
71
76
  README_FILENAME, _supported_summary(supported), print_diffs
@@ -118,6 +118,16 @@ class SmartRequest:
118
118
  enable: bool
119
119
  id: str | None = None
120
120
 
121
+ @dataclass
122
+ class GetCleanAttrParams(SmartRequestParams):
123
+ """CleanAttr params.
124
+
125
+ Decides which cleaning settings are requested
126
+ """
127
+
128
+ #: type can be global or pose
129
+ type: str = "global"
130
+
121
131
  @staticmethod
122
132
  def get_raw_request(
123
133
  method: str, params: SmartRequestParams | None = None
@@ -427,23 +437,32 @@ COMPONENT_REQUESTS = {
427
437
  "overheat_protection": [],
428
438
  # Vacuum components
429
439
  "clean": [
440
+ SmartRequest.get_raw_request("getCarpetClean"),
430
441
  SmartRequest.get_raw_request("getCleanRecords"),
431
442
  SmartRequest.get_raw_request("getVacStatus"),
443
+ SmartRequest.get_raw_request("getAreaUnit"),
444
+ SmartRequest.get_raw_request("getCleanInfo"),
445
+ SmartRequest.get_raw_request("getCleanStatus"),
446
+ SmartRequest("getCleanAttr", SmartRequest.GetCleanAttrParams()),
432
447
  ],
433
448
  "battery": [SmartRequest.get_raw_request("getBatteryInfo")],
434
449
  "consumables": [SmartRequest.get_raw_request("getConsumablesInfo")],
435
450
  "direction_control": [],
436
- "button_and_led": [],
451
+ "button_and_led": [SmartRequest.get_raw_request("getChildLockInfo")],
437
452
  "speaker": [
438
453
  SmartRequest.get_raw_request("getSupportVoiceLanguage"),
439
454
  SmartRequest.get_raw_request("getCurrentVoiceLanguage"),
455
+ SmartRequest.get_raw_request("getVolume"),
440
456
  ],
441
457
  "map": [
442
458
  SmartRequest.get_raw_request("getMapInfo"),
443
459
  SmartRequest.get_raw_request("getMapData"),
444
460
  ],
445
461
  "auto_change_map": [SmartRequest.get_raw_request("getAutoChangeMap")],
446
- "dust_bucket": [SmartRequest.get_raw_request("getAutoDustCollection")],
462
+ "dust_bucket": [
463
+ SmartRequest.get_raw_request("getAutoDustCollection"),
464
+ SmartRequest.get_raw_request("getDustCollectionInfo"),
465
+ ],
447
466
  "mop": [SmartRequest.get_raw_request("getMopState")],
448
467
  "do_not_disturb": [SmartRequest.get_raw_request("getDoNotDisturb")],
449
468
  "charge_pose_clean": [],
@@ -286,8 +286,7 @@ def main(
286
286
  operator.local_seed = message
287
287
  response = None
288
288
  print(
289
- f"got handshake1 in {packet_number}, "
290
- f"looking for the response"
289
+ f"got handshake1 in {packet_number}, looking for the response"
291
290
  )
292
291
  while (
293
292
  True
@@ -8,3 +8,10 @@
8
8
  .. automodule:: kasa.smart.modules.childdevice
9
9
  :noindex:
10
10
  ```
11
+
12
+ ## Pairing and unpairing
13
+
14
+ ```{eval-rst}
15
+ .. automodule:: kasa.interfaces.childsetup
16
+ :noindex:
17
+ ```
@@ -13,6 +13,7 @@
13
13
  127.0.0.3
14
14
  127.0.0.4
15
15
  127.0.0.5
16
+ 127.0.0.6
16
17
 
17
18
  :meth:`~kasa.Discover.discover_single` returns a single device by hostname:
18
19
 
@@ -91,5 +92,5 @@ False
91
92
  True
92
93
  >>> for feat in dev.features.values():
93
94
  >>> print(f"{feat.name}: {feat.value}")
94
- Device ID: 0000000000000000000000000000000000000000\nState: True\nSignal Level: 2\nRSSI: -52\nSSID: #MASKED_SSID#\nReboot: <Action>\nBrightness: 50\nCloud connection: True\nHSV: HSV(hue=0, saturation=100, value=50)\nColor temperature: 2700\nAuto update enabled: True\nUpdate available: None\nCurrent firmware version: 1.1.6 Build 240130 Rel.173828\nAvailable firmware version: None\nCheck latest firmware: <Action>\nLight effect: Party\nLight preset: Light preset 1\nSmooth transition on: 2\nSmooth transition off: 2\nOverheated: False\nDevice time: 2024-02-23 02:40:15+01:00
95
+ Device ID: 0000000000000000000000000000000000000000\nState: True\nSignal Level: 2\nRSSI: -52\nSSID: #MASKED_SSID#\nReboot: <Action>\nDevice time: 2024-02-23 02:40:15+01:00\nBrightness: 50\nCloud connection: True\nHSV: HSV(hue=0, saturation=100, value=50)\nColor temperature: 2700\nAuto update enabled: True\nUpdate available: None\nCurrent firmware version: 1.1.6 Build 240130 Rel.173828\nAvailable firmware version: None\nCheck latest firmware: <Action>\nLight effect: Party\nLight preset: Light preset 1\nSmooth transition on: 2\nSmooth transition off: 2\nOverheated: False
95
96
  """
@@ -10,7 +10,7 @@ from collections.abc import Callable
10
10
  from contextlib import contextmanager
11
11
  from functools import singledispatch, update_wrapper, wraps
12
12
  from gettext import gettext
13
- from typing import TYPE_CHECKING, Any, Final
13
+ from typing import TYPE_CHECKING, Any, Final, NoReturn
14
14
 
15
15
  import asyncclick as click
16
16
 
@@ -57,7 +57,7 @@ def echo(*args, **kwargs) -> None:
57
57
  _echo(*args, **kwargs)
58
58
 
59
59
 
60
- def error(msg: str) -> None:
60
+ def error(msg: str) -> NoReturn:
61
61
  """Print an error and exit."""
62
62
  echo(f"[bold red]{msg}[/bold red]")
63
63
  sys.exit(1)
@@ -68,6 +68,16 @@ def json_formatter_cb(result: Any, **kwargs) -> None:
68
68
  if not kwargs.get("json"):
69
69
  return
70
70
 
71
+ # Calling the discover command directly always returns a DeviceDict so if host
72
+ # was specified just format the device json
73
+ if (
74
+ (host := kwargs.get("host"))
75
+ and isinstance(result, dict)
76
+ and (dev := result.get(host))
77
+ and isinstance(dev, Device)
78
+ ):
79
+ result = dev
80
+
71
81
  @singledispatch
72
82
  def to_serializable(val):
73
83
  """Regular obj-to-string for json serialization.
@@ -85,6 +95,25 @@ def json_formatter_cb(result: Any, **kwargs) -> None:
85
95
  print(json_content)
86
96
 
87
97
 
98
+ async def invoke_subcommand(
99
+ command: click.BaseCommand,
100
+ ctx: click.Context,
101
+ args: list[str] | None = None,
102
+ **extra: Any,
103
+ ) -> Any:
104
+ """Invoke a click subcommand.
105
+
106
+ Calling ctx.Invoke() treats the command like a simple callback and doesn't
107
+ process any result_callbacks so we use this pattern from the click docs
108
+ https://click.palletsprojects.com/en/stable/exceptions/#what-if-i-don-t-want-that.
109
+ """
110
+ if args is None:
111
+ args = []
112
+ sub_ctx = await command.make_context(command.name, args, parent=ctx, **extra)
113
+ async with sub_ctx:
114
+ return await command.invoke(sub_ctx)
115
+
116
+
88
117
  def pass_dev_or_child(wrapped_function: Callable) -> Callable:
89
118
  """Pass the device or child to the click command based on the child options."""
90
119
  child_help = (
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from pprint import pformat as pf
6
+ from typing import TYPE_CHECKING
6
7
 
7
8
  import asyncclick as click
8
9
 
@@ -82,6 +83,8 @@ async def state(ctx, dev: Device):
82
83
  echo()
83
84
  from .discover import _echo_discovery_info
84
85
 
86
+ if TYPE_CHECKING:
87
+ assert dev._discovery_info
85
88
  _echo_discovery_info(dev._discovery_info)
86
89
 
87
90
  return dev.internal_state