python-kasa 0.7.0.4__tar.gz → 0.7.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.
Files changed (274) hide show
  1. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/CHANGELOG.md +149 -70
  2. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/PKG-INFO +3 -3
  3. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/README.md +2 -2
  4. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/aestransport.py +3 -1
  5. python_kasa-0.7.1/kasa/cli/__init__.py +1 -0
  6. python_kasa-0.7.1/kasa/cli/__main__.py +6 -0
  7. python_kasa-0.7.1/kasa/cli/common.py +231 -0
  8. python_kasa-0.7.1/kasa/cli/device.py +184 -0
  9. python_kasa-0.7.1/kasa/cli/discover.py +142 -0
  10. python_kasa-0.7.1/kasa/cli/feature.py +134 -0
  11. python_kasa-0.7.1/kasa/cli/lazygroup.py +70 -0
  12. python_kasa-0.7.1/kasa/cli/light.py +200 -0
  13. python_kasa-0.7.1/kasa/cli/main.py +412 -0
  14. python_kasa-0.7.1/kasa/cli/schedule.py +46 -0
  15. python_kasa-0.7.1/kasa/cli/time.py +55 -0
  16. python_kasa-0.7.1/kasa/cli/usage.py +134 -0
  17. python_kasa-0.7.1/kasa/cli/wifi.py +50 -0
  18. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/device.py +10 -3
  19. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/discover.py +36 -7
  20. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/feature.py +46 -28
  21. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/httpclient.py +3 -3
  22. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/interfaces/energy.py +6 -6
  23. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/iotbulb.py +10 -2
  24. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/iotdevice.py +13 -1
  25. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/iotstrip.py +9 -1
  26. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/ambientlight.py +1 -1
  27. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/light.py +3 -2
  28. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/lighteffect.py +16 -9
  29. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iotprotocol.py +37 -2
  30. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/klaptransport.py +17 -13
  31. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/module.py +2 -0
  32. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/protocol.py +42 -1
  33. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/__init__.py +2 -0
  34. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/alarm.py +1 -1
  35. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/autooff.py +1 -1
  36. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/batterysensor.py +1 -1
  37. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/brightness.py +1 -2
  38. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/cloud.py +0 -7
  39. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/colortemperature.py +8 -11
  40. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/energy.py +9 -1
  41. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/fan.py +1 -2
  42. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/humiditysensor.py +1 -1
  43. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/led.py +1 -1
  44. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/light.py +3 -1
  45. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/lighteffect.py +2 -1
  46. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/lightpreset.py +14 -0
  47. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/lightstripeffect.py +11 -2
  48. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/lighttransition.py +3 -3
  49. python_kasa-0.7.1/kasa/smart/modules/motionsensor.py +36 -0
  50. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/reportmode.py +1 -1
  51. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/temperaturecontrol.py +1 -2
  52. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/temperaturesensor.py +1 -1
  53. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/smartchilddevice.py +19 -2
  54. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/smartdevice.py +52 -44
  55. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/smartmodule.py +53 -0
  56. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smartprotocol.py +37 -88
  57. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/device_fixtures.py +2 -2
  58. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/discovery_fixtures.py +12 -10
  59. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fakeprotocol_iot.py +22 -8
  60. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fakeprotocol_smart.py +12 -8
  61. python_kasa-0.7.1/kasa/tests/fixtures/KP400(US)_3.0_1.0.3.json +45 -0
  62. python_kasa-0.7.1/kasa/tests/fixtures/KP400(US)_3.0_1.0.4.json +46 -0
  63. python_kasa-0.7.1/kasa/tests/fixtures/KP405(US)_1.0_1.0.6.json +65 -0
  64. python_kasa-0.7.1/kasa/tests/fixtures/KS200M(US)_1.0_1.0.11.json +96 -0
  65. python_kasa-0.7.1/kasa/tests/fixtures/smart/HS220(US)_3.26_1.0.1.json +371 -0
  66. python_kasa-0.7.1/kasa/tests/fixtures/smart/KS205(US)_1.0_1.1.0.json +298 -0
  67. python_kasa-0.7.1/kasa/tests/fixtures/smart/KS225(US)_1.0_1.1.0.json +332 -0
  68. python_kasa-0.7.1/kasa/tests/fixtures/smart/L920-5(EU)_1.0_1.1.3.json +1085 -0
  69. python_kasa-0.7.1/kasa/tests/fixtures/smart/child/T100(EU)_1.0_1.12.0.json +537 -0
  70. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_light_strip_effect.py +12 -15
  71. python_kasa-0.7.1/kasa/tests/smart/modules/test_motionsensor.py +28 -0
  72. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_bulb.py +17 -1
  73. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_cli.py +139 -20
  74. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_common_modules.py +76 -0
  75. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_discovery.py +36 -0
  76. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_feature.py +2 -2
  77. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_klapprotocol.py +66 -0
  78. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_protocol.py +130 -1
  79. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_smartdevice.py +89 -87
  80. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_smartprotocol.py +35 -0
  81. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/xortransport.py +6 -8
  82. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/pyproject.toml +3 -2
  83. python_kasa-0.7.0.4/kasa/cli.py +0 -1316
  84. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/LICENSE +0 -0
  85. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/__init__.py +0 -0
  86. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/credentials.py +0 -0
  87. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/device_factory.py +0 -0
  88. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/device_type.py +0 -0
  89. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/deviceconfig.py +0 -0
  90. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/emeterstatus.py +0 -0
  91. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/exceptions.py +0 -0
  92. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/interfaces/__init__.py +0 -0
  93. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/interfaces/fan.py +0 -0
  94. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/interfaces/led.py +0 -0
  95. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/interfaces/light.py +0 -0
  96. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/interfaces/lighteffect.py +0 -0
  97. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/interfaces/lightpreset.py +0 -0
  98. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/__init__.py +0 -0
  99. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/effects.py +0 -0
  100. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/iotdimmer.py +0 -0
  101. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/iotlightstrip.py +0 -0
  102. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/iotmodule.py +0 -0
  103. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/iotplug.py +0 -0
  104. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/__init__.py +0 -0
  105. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/antitheft.py +0 -0
  106. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/cloud.py +0 -0
  107. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/countdown.py +0 -0
  108. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/emeter.py +0 -0
  109. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/led.py +0 -0
  110. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/lightpreset.py +0 -0
  111. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/motion.py +0 -0
  112. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/rulemodule.py +0 -0
  113. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/schedule.py +0 -0
  114. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/time.py +0 -0
  115. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/iot/modules/usage.py +0 -0
  116. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/json.py +0 -0
  117. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/modulemapping.py +0 -0
  118. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/modulemapping.pyi +0 -0
  119. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/py.typed +0 -0
  120. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/__init__.py +0 -0
  121. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/effects.py +0 -0
  122. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/childdevice.py +0 -0
  123. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/color.py +0 -0
  124. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/contactsensor.py +0 -0
  125. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/devicemodule.py +0 -0
  126. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/firmware.py +0 -0
  127. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/frostprotection.py +0 -0
  128. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/time.py +0 -0
  129. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/smart/modules/waterleaksensor.py +0 -0
  130. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/__init__.py +0 -0
  131. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/conftest.py +0 -0
  132. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtureinfo.py +0 -0
  133. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json +0 -0
  134. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/EP40(US)_1.0_1.0.2.json +0 -0
  135. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/ES20M(US)_1.0_1.0.8.json +0 -0
  136. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS100(UK)_1.0_1.2.6.json +0 -0
  137. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS100(UK)_4.1_1.1.0.json +0 -0
  138. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS100(US)_1.0_1.2.5.json +0 -0
  139. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS100(US)_2.0_1.5.6.json +0 -0
  140. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS103(US)_1.0_1.5.7.json +0 -0
  141. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS103(US)_2.1_1.1.2.json +0 -0
  142. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS103(US)_2.1_1.1.4.json +0 -0
  143. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS105(US)_1.0_1.5.6.json +0 -0
  144. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS107(US)_1.0_1.0.8.json +0 -0
  145. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS110(EU)_1.0_1.2.5.json +0 -0
  146. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS110(EU)_4.0_1.0.4.json +0 -0
  147. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS110(US)_1.0_1.2.6.json +0 -0
  148. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS200(US)_2.0_1.5.7.json +0 -0
  149. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS200(US)_5.0_1.0.2.json +0 -0
  150. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS210(US)_1.0_1.5.8.json +0 -0
  151. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS220(US)_1.0_1.5.7.json +0 -0
  152. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS220(US)_2.0_1.0.3.json +0 -0
  153. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS300(US)_1.0_1.0.10.json +0 -0
  154. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS300(US)_1.0_1.0.21.json +0 -0
  155. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS300(US)_2.0_1.0.12.json +0 -0
  156. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/HS300(US)_2.0_1.0.3.json +0 -0
  157. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL110(US)_1.0_1.8.11.json +0 -0
  158. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL120(US)_1.0_1.8.11.json +0 -0
  159. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL120(US)_1.0_1.8.6.json +0 -0
  160. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL125(US)_1.20_1.0.5.json +0 -0
  161. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL125(US)_2.0_1.0.7.json +0 -0
  162. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL125(US)_4.0_1.0.5.json +0 -0
  163. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json +0 -0
  164. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL130(US)_1.0_1.8.11.json +0 -0
  165. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL135(US)_1.0_1.0.6.json +0 -0
  166. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.5.json +0 -0
  167. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.8.json +0 -0
  168. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL420L5(US)_1.0_1.0.2.json +0 -0
  169. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL430(UN)_2.0_1.0.8.json +0 -0
  170. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL430(US)_1.0_1.0.10.json +0 -0
  171. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL430(US)_2.0_1.0.11.json +0 -0
  172. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL430(US)_2.0_1.0.8.json +0 -0
  173. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL430(US)_2.0_1.0.9.json +0 -0
  174. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL50(US)_1.0_1.1.13.json +0 -0
  175. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL60(UN)_1.0_1.1.4.json +0 -0
  176. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json +0 -0
  177. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json +0 -0
  178. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.5.json +0 -0
  179. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json +0 -0
  180. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP115(EU)_1.0_1.0.16.json +0 -0
  181. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP115(US)_1.0_1.0.17.json +0 -0
  182. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP115(US)_1.0_1.0.21.json +0 -0
  183. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP125(US)_1.0_1.0.6.json +0 -0
  184. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP200(US)_3.0_1.0.3.json +0 -0
  185. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP303(UK)_1.0_1.0.3.json +0 -0
  186. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP303(US)_2.0_1.0.3.json +0 -0
  187. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP400(US)_1.0_1.0.10.json +0 -0
  188. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP400(US)_2.0_1.0.6.json +0 -0
  189. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP401(US)_1.0_1.0.0.json +0 -0
  190. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KP405(US)_1.0_1.0.5.json +0 -0
  191. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KS200M(US)_1.0_1.0.8.json +0 -0
  192. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KS220M(US)_1.0_1.0.4.json +0 -0
  193. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/KS230(US)_1.0_1.0.14.json +0 -0
  194. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/LB110(US)_1.0_1.8.11.json +0 -0
  195. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
  196. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
  197. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
  198. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +0 -0
  199. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
  200. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
  201. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
  202. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
  203. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
  204. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
  205. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
  206. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
  207. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
  208. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
  209. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
  210. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
  211. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
  212. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
  213. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
  214. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
  215. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
  216. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
  217. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
  218. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
  219. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
  220. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
  221. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P100_1.0.0_1.1.3.json +0 -0
  222. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P100_1.0.0_1.3.7.json +0 -0
  223. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P100_1.0.0_1.4.0.json +0 -0
  224. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
  225. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
  226. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
  227. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
  228. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
  229. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
  230. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
  231. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
  232. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
  233. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
  234. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
  235. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
  236. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
  237. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
  238. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
  239. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
  240. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
  241. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
  242. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
  243. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +0 -0
  244. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -0
  245. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/__init__.py +0 -0
  246. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/features/__init__.py +0 -0
  247. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/features/test_brightness.py +0 -0
  248. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/features/test_colortemp.py +0 -0
  249. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/__init__.py +0 -0
  250. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_autooff.py +0 -0
  251. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_contact.py +0 -0
  252. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_fan.py +0 -0
  253. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_firmware.py +0 -0
  254. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_humidity.py +0 -0
  255. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_light_effect.py +0 -0
  256. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_lighttransition.py +0 -0
  257. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_temperature.py +0 -0
  258. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_temperaturecontrol.py +0 -0
  259. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/smart/modules/test_waterleak.py +0 -0
  260. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_aestransport.py +0 -0
  261. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_childdevice.py +0 -0
  262. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_device.py +0 -0
  263. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_device_factory.py +0 -0
  264. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_device_type.py +0 -0
  265. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_deviceconfig.py +0 -0
  266. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_dimmer.py +0 -0
  267. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_emeter.py +0 -0
  268. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_httpclient.py +0 -0
  269. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_iotdevice.py +0 -0
  270. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_lightstrip.py +0 -0
  271. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_plug.py +0 -0
  272. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_readme_examples.py +0 -0
  273. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_strip.py +0 -0
  274. {python_kasa-0.7.0.4 → python_kasa-0.7.1}/kasa/tests/test_usage.py +0 -0
@@ -1,26 +1,105 @@
1
1
  # Changelog
2
2
 
3
- ## [0.7.0.4](https://github.com/python-kasa/python-kasa/tree/0.7.0.4) (2024-07-011)
3
+ ## [0.7.1](https://github.com/python-kasa/python-kasa/tree/0.7.1) (2024-07-31)
4
+
5
+ [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.5...0.7.1)
6
+
7
+ **Release highlights:**
8
+ - This release consists mainly of bugfixes and project improvements.
9
+ - There is also new support for Tapo T100 motion sensors.
10
+ - The CLI now supports child devices on all applicable commands.
11
+
12
+ **Implemented enhancements:**
13
+
14
+ - Expose reboot action [\#1073](https://github.com/python-kasa/python-kasa/pull/1073) (@rytilahti)
15
+ - Decrypt KLAP data from PCAP files [\#1041](https://github.com/python-kasa/python-kasa/pull/1041) (@clstrickland)
16
+ - Support child devices in all applicable cli commands [\#1020](https://github.com/python-kasa/python-kasa/pull/1020) (@sdb9696)
17
+
18
+ **Fixed bugs:**
19
+
20
+ - Fix iot light effect brightness [\#1092](https://github.com/python-kasa/python-kasa/pull/1092) (@sdb9696)
21
+ - Enable setting brightness with color temp for smart devices [\#1091](https://github.com/python-kasa/python-kasa/pull/1091) (@sdb9696)
22
+ - Do not send light\_on value to iot bulb set\_state [\#1090](https://github.com/python-kasa/python-kasa/pull/1090) (@sdb9696)
23
+ - Allow erroring modules to recover [\#1080](https://github.com/python-kasa/python-kasa/pull/1080) (@sdb9696)
24
+ - Raise KasaException on decryption errors [\#1078](https://github.com/python-kasa/python-kasa/pull/1078) (@sdb9696)
25
+ - Update smart request parameter handling [\#1061](https://github.com/python-kasa/python-kasa/pull/1061) (@sdb9696)
26
+ - Fix light preset module when list contains lighting effects [\#1048](https://github.com/python-kasa/python-kasa/pull/1048) (@sdb9696)
27
+ - Handle module errors more robustly and add query params to light preset and transition [\#1036](https://github.com/python-kasa/python-kasa/pull/1036) (@sdb9696)
28
+ - Fix credential hash to return None on empty credentials [\#1029](https://github.com/python-kasa/python-kasa/pull/1029) (@sdb9696)
29
+
30
+ **Added support for devices:**
31
+
32
+ - Add support for T100 motion sensor [\#1079](https://github.com/python-kasa/python-kasa/pull/1079) (@rytilahti)
33
+
34
+ **Project maintenance:**
35
+
36
+ - Bump project version to 0.7.0.5 [\#1087](https://github.com/python-kasa/python-kasa/pull/1087) (@sdb9696)
37
+ - Fix generate\_supported pre commit to run in venv [\#1085](https://github.com/python-kasa/python-kasa/pull/1085) (@sdb9696)
38
+ - Fix intermittently failing decryption error test [\#1082](https://github.com/python-kasa/python-kasa/pull/1082) (@sdb9696)
39
+ - Fix mypy pre-commit hook on windows [\#1081](https://github.com/python-kasa/python-kasa/pull/1081) (@sdb9696)
40
+ - Update RELEASING.md for patch releases [\#1076](https://github.com/python-kasa/python-kasa/pull/1076) (@sdb9696)
41
+ - Use monotonic time for query timing [\#1070](https://github.com/python-kasa/python-kasa/pull/1070) (@sdb9696)
42
+ - Fix parse\_pcap\_klap on windows and support default credentials [\#1068](https://github.com/python-kasa/python-kasa/pull/1068) (@sdb9696)
43
+ - Add fixture file for KP405 fw 1.0.6 [\#1063](https://github.com/python-kasa/python-kasa/pull/1063) (@daleye)
44
+ - Bump project version to 0.7.0.3 [\#1053](https://github.com/python-kasa/python-kasa/pull/1053) (@sdb9696)
45
+ - Add KP400\(US\) v1.0.4 fixture [\#1051](https://github.com/python-kasa/python-kasa/pull/1051) (@gimpy88)
46
+ - Add new HS220 kasa aes fixture [\#1050](https://github.com/python-kasa/python-kasa/pull/1050) (@sdb9696)
47
+ - Add KS205\(US\) v1.1.0 fixture [\#1049](https://github.com/python-kasa/python-kasa/pull/1049) (@gimpy88)
48
+ - Add KS200M\(US\) v1.0.11 fixture [\#1047](https://github.com/python-kasa/python-kasa/pull/1047) (@sdb9696)
49
+ - Add KS225\(US\) v1.1.0 fixture [\#1046](https://github.com/python-kasa/python-kasa/pull/1046) (@sdb9696)
50
+ - Split out main cli module into lazily loaded submodules [\#1039](https://github.com/python-kasa/python-kasa/pull/1039) (@sdb9696)
51
+ - Structure cli into a package [\#1038](https://github.com/python-kasa/python-kasa/pull/1038) (@sdb9696)
52
+ - Add KP400 v1.0.3 fixture [\#1037](https://github.com/python-kasa/python-kasa/pull/1037) (@gimpy88)
53
+ - Add L920\(EU\) v1.1.3 fixture [\#1031](https://github.com/python-kasa/python-kasa/pull/1031) (@rytilahti)
54
+ - Update changelog generator config [\#1030](https://github.com/python-kasa/python-kasa/pull/1030) (@sdb9696)
55
+
56
+ ## [0.7.0.5](https://github.com/python-kasa/python-kasa/tree/0.7.0.5) (2024-07-18)
57
+
58
+ [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.4...0.7.0.5)
59
+
60
+ A critical bugfix for an issue with some L530 Series devices and a redactor for sensitive info from debug logs.
61
+
62
+ **Fixed bugs:**
63
+
64
+ - Only refresh smart LightEffect module daily [\#1064](https://github.com/python-kasa/python-kasa/pull/1064) (@sdb9696)
65
+
66
+ **Project maintenance:**
67
+
68
+ - Redact sensitive info from debug logs [\#1069](https://github.com/python-kasa/python-kasa/pull/1069) (@sdb9696)
69
+
70
+ ## [0.7.0.4](https://github.com/python-kasa/python-kasa/tree/0.7.0.4) (2024-07-11)
4
71
 
5
72
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.3...0.7.0.4)
6
73
 
7
- Critical bugfixes for issues with P100s and thermostats.
74
+ Critical bugfixes for issues with P100s and thermostats
75
+
8
76
 
9
77
  **Fixed bugs:**
10
78
 
11
- - Use first known thermostat state as main state (pick #1054) [\#1057](https://github.com/python-kasa/python-kasa/pull/1057)
12
- - Defer module updates for less volatile modules (pick 1052) [\#1056](https://github.com/python-kasa/python-kasa/pull/1056)
79
+ - Error connecting to L920-5 Smart LED Strip [\#1040](https://github.com/python-kasa/python-kasa/issues/1040)
80
+ - Use first known thermostat state as main state \(pick \#1054\) [\#1057](https://github.com/python-kasa/python-kasa/pull/1057) (@sdb9696)
81
+ - Defer module updates for less volatile modules \(pick 1052\) [\#1056](https://github.com/python-kasa/python-kasa/pull/1056) (@sdb9696)
82
+ - Use first known thermostat state as main state [\#1054](https://github.com/python-kasa/python-kasa/pull/1054) (@rytilahti)
83
+ - Defer module updates for less volatile modules [\#1052](https://github.com/python-kasa/python-kasa/pull/1052) (@sdb9696)
13
84
 
14
85
  ## [0.7.0.3](https://github.com/python-kasa/python-kasa/tree/0.7.0.3) (2024-07-04)
15
86
 
16
87
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.2...0.7.0.3)
17
88
 
18
- Critical bugfix for issue #1033 with ks225 and S505D light preset module errors.
89
+ Critical bugfix for issue #1033 with ks225 and S505D light preset module errors.
19
90
  Partially fixes light preset module errors with L920 and L930.
20
91
 
21
92
  **Fixed bugs:**
22
93
 
23
- - Handle module errors more robustly and add query params to light preset and transition [\#1043](https://github.com/python-kasa/python-kasa/pull/1043)
94
+ - Handle module errors more robustly and add query params to light preset and transition [\#1043](https://github.com/python-kasa/python-kasa/pull/1043) (@sdb9696)
95
+
96
+ **Documentation updates:**
97
+
98
+ - Misleading usage of asyncio.run\(\) in code examples [\#348](https://github.com/python-kasa/python-kasa/issues/348)
99
+
100
+ **Project maintenance:**
101
+
102
+ - Enable CI on the patch branch [\#1042](https://github.com/python-kasa/python-kasa/pull/1042) (@sdb9696)
24
103
 
25
104
  ## [0.7.0.2](https://github.com/python-kasa/python-kasa/tree/0.7.0.2) (2024-07-01)
26
105
 
@@ -62,25 +141,25 @@ This patch release fixes some minor issues found out during testing against all
62
141
 
63
142
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.2.1...0.7.0)
64
143
 
65
- We have been working hard behind the scenes to make this major release possible.
66
- This release brings a major refactoring of the library to serve the ever-growing list of supported devices and paves the way for the future, yet unsupported devices.
67
- The library now exposes device features through generic module and feature interfaces, that allows easy extension for future improvements.
68
-
69
- With almost 180 merged pull requests, over 200 changed files and since the last release, this release includes lots of goodies for everyone:
70
- * Support for multi-functional devices like the dimmable fan KS240.
71
- * Initial support for hubs and hub-connected devices like thermostats and sensors.
72
- * Both IOT (legacy kasa) and SMART (tapo and newer kasa) devices now expose features and share common API.
73
- * Modules to allow controlling new devices and functions such as light presets, fan controls, thermostats, humidity sensors, firmware updates and alarms.
74
- * The common APIs allow dynamic introspection of available device features, making it easy to create dynamic interfaces.
75
- * Improved documentation.
76
-
77
- Hope you enjoy the release, feel free to leave a comment and feedback!
78
-
79
- If you have a device that works, but is not listed in our supported devices list, feel free to [contribute fixture files](https://python-kasa.readthedocs.io/en/latest/contribute.html#contributing-fixture-files) to help us to make the library even better!
80
-
81
- > git diff 0.6.2.1..HEAD|diffstat
82
- > 214 files changed, 26960 insertions(+), 6310 deletions(-)
83
-
144
+ We have been working hard behind the scenes to make this major release possible.
145
+ This release brings a major refactoring of the library to serve the ever-growing list of supported devices and paves the way for the future, yet unsupported devices.
146
+ The library now exposes device features through generic module and feature interfaces, that allows easy extension for future improvements.
147
+
148
+ With almost 180 merged pull requests, over 200 changed files and since the last release, this release includes lots of goodies for everyone:
149
+ * Support for multi-functional devices like the dimmable fan KS240.
150
+ * Initial support for hubs and hub-connected devices like thermostats and sensors.
151
+ * Both IOT (legacy kasa) and SMART (tapo and newer kasa) devices now expose features and share common API.
152
+ * Modules to allow controlling new devices and functions such as light presets, fan controls, thermostats, humidity sensors, firmware updates and alarms.
153
+ * The common APIs allow dynamic introspection of available device features, making it easy to create dynamic interfaces.
154
+ * Improved documentation.
155
+
156
+ Hope you enjoy the release, feel free to leave a comment and feedback!
157
+
158
+ If you have a device that works, but is not listed in our supported devices list, feel free to [contribute fixture files](https://python-kasa.readthedocs.io/en/latest/contribute.html#contributing-fixture-files) to help us to make the library even better!
159
+
160
+ > git diff 0.6.2.1..HEAD|diffstat
161
+ > 214 files changed, 26960 insertions(+), 6310 deletions(-)
162
+
84
163
  For more information on the changes please checkout our [documentation on the API changes](https://python-kasa.readthedocs.io/en/latest/deprecated.html)
85
164
 
86
165
  **Breaking changes:**
@@ -312,8 +391,8 @@ For more information on the changes please checkout our [documentation on the AP
312
391
 
313
392
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.1...0.6.2)
314
393
 
315
- Release highlights:
316
- * Support for tapo power strips (P300)
394
+ Release highlights:
395
+ * Support for tapo power strips (P300)
317
396
  * Performance improvements and bug fixes
318
397
 
319
398
  **Implemented enhancements:**
@@ -352,9 +431,9 @@ Release highlights:
352
431
 
353
432
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.0.1...0.6.1)
354
433
 
355
- Release highlights:
356
- * Support for tapo wall switches
357
- * Support for unprovisioned devices
434
+ Release highlights:
435
+ * Support for tapo wall switches
436
+ * Support for unprovisioned devices
358
437
  * Performance and stability improvements
359
438
 
360
439
  **Implemented enhancements:**
@@ -427,17 +506,17 @@ A patch release to improve the protocol handling.
427
506
 
428
507
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.4...0.6.0)
429
508
 
430
- This major brings major changes to the library by adding support for devices that require authentication for communications, all of this being possible thanks to the great work by @sdb9696!
431
-
432
- This release adds support to a large range of previously unsupported devices, including:
433
-
434
- * Newer kasa-branded devices, including Matter-enabled devices like KP125M
435
- * Newer hardware/firmware versions on some models, like EP25, that suddenly changed the used protocol
436
- * Tapo-branded devices like plugs (P110), light bulbs (KL530), LED strips (L900, L920), and wall switches (KS205, KS225)
437
- * UK variant of HS110, which was the first device using the new protocol
438
-
439
- If your device that is not currently listed as supported is working, please consider contributing a test fixture file.
440
-
509
+ This major brings major changes to the library by adding support for devices that require authentication for communications, all of this being possible thanks to the great work by @sdb9696!
510
+
511
+ This release adds support to a large range of previously unsupported devices, including:
512
+
513
+ * Newer kasa-branded devices, including Matter-enabled devices like KP125M
514
+ * Newer hardware/firmware versions on some models, like EP25, that suddenly changed the used protocol
515
+ * Tapo-branded devices like plugs (P110), light bulbs (KL530), LED strips (L900, L920), and wall switches (KS205, KS225)
516
+ * UK variant of HS110, which was the first device using the new protocol
517
+
518
+ If your device that is not currently listed as supported is working, please consider contributing a test fixture file.
519
+
441
520
  Special thanks goes to @SimonWilkinson who created the initial PR for the new communication protocol!
442
521
 
443
522
  **Breaking changes:**
@@ -532,13 +611,13 @@ Special thanks goes to @SimonWilkinson who created the initial PR for the new co
532
611
 
533
612
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.3...0.5.4)
534
613
 
535
- The highlights of this maintenance release:
536
-
537
- * Support to the alternative discovery protocol and foundational work to support other communication protocols, thanks to @sdb9696.
538
- * Reliability improvements by avoiding overflowing device buffers, thanks to @cobryan05.
539
- * Optimizations for downstream device accesses, thanks to @bdraco.
540
- * Support for both pydantic v1 and v2.
541
-
614
+ The highlights of this maintenance release:
615
+
616
+ * Support to the alternative discovery protocol and foundational work to support other communication protocols, thanks to @sdb9696.
617
+ * Reliability improvements by avoiding overflowing device buffers, thanks to @cobryan05.
618
+ * Optimizations for downstream device accesses, thanks to @bdraco.
619
+ * Support for both pydantic v1 and v2.
620
+
542
621
  As always, see the full changelog for details.
543
622
 
544
623
  **Implemented enhancements:**
@@ -598,8 +677,8 @@ This release adds support for defining the device port and introduces dependency
598
677
 
599
678
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.1...0.5.2)
600
679
 
601
- Besides some small improvements, this release:
602
- * Adds optional dependency for for `orjson` and `kasa-crypt` to speed-up protocol handling by an order of magnitude.
680
+ Besides some small improvements, this release:
681
+ * Adds optional dependency for for `orjson` and `kasa-crypt` to speed-up protocol handling by an order of magnitude.
603
682
  * Drops Python 3.7 support as it is no longer maintained.
604
683
 
605
684
  **Breaking changes:**
@@ -634,11 +713,11 @@ Besides some small improvements, this release:
634
713
 
635
714
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.0...0.5.1)
636
715
 
637
- This minor release contains mostly small UX fine-tuning and documentation improvements alongside with bug fixes:
638
- * Improved console tool (JSON output, colorized output if rich is installed)
639
- * Pretty, colorized console output, if `rich` is installed
640
- * Support for configuring bulb presets
641
- * Usage data is now reported in the expected format
716
+ This minor release contains mostly small UX fine-tuning and documentation improvements alongside with bug fixes:
717
+ * Improved console tool (JSON output, colorized output if rich is installed)
718
+ * Pretty, colorized console output, if `rich` is installed
719
+ * Support for configuring bulb presets
720
+ * Usage data is now reported in the expected format
642
721
  * Dependency pinning is relaxed to give downstreams more control
643
722
 
644
723
  **Breaking changes:**
@@ -702,21 +781,21 @@ This minor release contains mostly small UX fine-tuning and documentation improv
702
781
 
703
782
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.4.3...0.5.0)
704
783
 
705
- This is the first release of 0.5 series which includes converting the code base towards more modular approach where device-exposed modules (e.g., emeter, antitheft, or schedule) are implemented in their separate python modules to decouple them from the device-specific classes.
706
-
707
- There should be no API breaking changes, but some previous issues hint that there may be as information from all supported modules are now requested during each update cycle (depending on the device type):
708
- * Basic system info
709
- * Emeter
710
- * Time - properties (like `on_since`) use now time from the device for calculation to avoid jitter caused by different time between the host and the device
711
- * Usage statistics - similar interface to emeter, but reports on-time statistics instead of energy consumption (new)
712
- * Countdown (new)
713
- * Antitheft (new)
714
- * Schedule (new)
715
- * Motion - for configuring motion settings on some dimmers (new)
716
- * Ambientlight - for configuring brightness limits when motion sensor actuates on some dimmers (new)
717
- * Cloud - information about cloud connectivity (new)
718
-
719
- For developers, the new functionalities are currently only exposed through the implementation modules accessible through `modules` property.
784
+ This is the first release of 0.5 series which includes converting the code base towards more modular approach where device-exposed modules (e.g., emeter, antitheft, or schedule) are implemented in their separate python modules to decouple them from the device-specific classes.
785
+
786
+ There should be no API breaking changes, but some previous issues hint that there may be as information from all supported modules are now requested during each update cycle (depending on the device type):
787
+ * Basic system info
788
+ * Emeter
789
+ * Time - properties (like `on_since`) use now time from the device for calculation to avoid jitter caused by different time between the host and the device
790
+ * Usage statistics - similar interface to emeter, but reports on-time statistics instead of energy consumption (new)
791
+ * Countdown (new)
792
+ * Antitheft (new)
793
+ * Schedule (new)
794
+ * Motion - for configuring motion settings on some dimmers (new)
795
+ * Ambientlight - for configuring brightness limits when motion sensor actuates on some dimmers (new)
796
+ * Cloud - information about cloud connectivity (new)
797
+
798
+ For developers, the new functionalities are currently only exposed through the implementation modules accessible through `modules` property.
720
799
  Pull requests improving the functionality of modules as well as adding better interfaces to device classes are welcome!
721
800
 
722
801
  **Breaking changes:**
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-kasa
3
- Version: 0.7.0.4
3
+ Version: 0.7.1
4
4
  Summary: Python API for TP-Link Kasa Smarthome devices
5
5
  Home-page: https://github.com/python-kasa/python-kasa
6
6
  License: GPL-3.0-or-later
@@ -216,7 +216,7 @@ The following devices have been tested and confirmed as working. If your device
216
216
 
217
217
  - **Plugs**: EP10, EP25<sup>\*</sup>, HS100<sup>\*\*</sup>, HS103, HS105, HS110, KP100, KP105, KP115, KP125, KP125M<sup>\*</sup>, KP401
218
218
  - **Power Strips**: EP40, HS107, HS300, KP200, KP303, KP400
219
- - **Wall Switches**: ES20M, HS200, HS210, HS220, KP405, KS200M, KS205<sup>\*</sup>, KS220M, KS225<sup>\*</sup>, KS230, KS240<sup>\*</sup>
219
+ - **Wall Switches**: ES20M, HS200, HS210, HS220<sup>\*\*</sup>, KP405, KS200M, KS205<sup>\*</sup>, KS220M, KS225<sup>\*</sup>, KS230, KS240<sup>\*</sup>
220
220
  - **Bulbs**: KL110, KL120, KL125, KL130, KL135, KL50, KL60, LB110
221
221
  - **Light Strips**: KL400L5, KL420L5, KL430
222
222
  - **Hubs**: KH100<sup>\*</sup>
@@ -230,7 +230,7 @@ The following devices have been tested and confirmed as working. If your device
230
230
  - **Bulbs**: L510B, L510E, L530E
231
231
  - **Light Strips**: L900-10, L900-5, L920-5, L930-5
232
232
  - **Hubs**: H100
233
- - **Hub-Connected Devices<sup>\*\*\*</sup>**: T110, T300, T310, T315
233
+ - **Hub-Connected Devices<sup>\*\*\*</sup>**: T100, T110, T300, T310, T315
234
234
 
235
235
  <!--SUPPORTED_END-->
236
236
  <sup>\*</sup>&nbsp;&nbsp; Model requires authentication<br>
@@ -180,7 +180,7 @@ The following devices have been tested and confirmed as working. If your device
180
180
 
181
181
  - **Plugs**: EP10, EP25<sup>\*</sup>, HS100<sup>\*\*</sup>, HS103, HS105, HS110, KP100, KP105, KP115, KP125, KP125M<sup>\*</sup>, KP401
182
182
  - **Power Strips**: EP40, HS107, HS300, KP200, KP303, KP400
183
- - **Wall Switches**: ES20M, HS200, HS210, HS220, KP405, KS200M, KS205<sup>\*</sup>, KS220M, KS225<sup>\*</sup>, KS230, KS240<sup>\*</sup>
183
+ - **Wall Switches**: ES20M, HS200, HS210, HS220<sup>\*\*</sup>, KP405, KS200M, KS205<sup>\*</sup>, KS220M, KS225<sup>\*</sup>, KS230, KS240<sup>\*</sup>
184
184
  - **Bulbs**: KL110, KL120, KL125, KL130, KL135, KL50, KL60, LB110
185
185
  - **Light Strips**: KL400L5, KL420L5, KL430
186
186
  - **Hubs**: KH100<sup>\*</sup>
@@ -194,7 +194,7 @@ The following devices have been tested and confirmed as working. If your device
194
194
  - **Bulbs**: L510B, L510E, L530E
195
195
  - **Light Strips**: L900-10, L900-5, L920-5, L930-5
196
196
  - **Hubs**: H100
197
- - **Hub-Connected Devices<sup>\*\*\*</sup>**: T110, T300, T310, T315
197
+ - **Hub-Connected Devices<sup>\*\*\*</sup>**: T100, T110, T300, T310, T315
198
198
 
199
199
  <!--SUPPORTED_END-->
200
200
  <sup>\*</sup>&nbsp;&nbsp; Model requires authentication<br>
@@ -117,8 +117,10 @@ class AesTransport(BaseTransport):
117
117
  return self.DEFAULT_PORT
118
118
 
119
119
  @property
120
- def credentials_hash(self) -> str:
120
+ def credentials_hash(self) -> str | None:
121
121
  """The hashed credentials used by the transport."""
122
+ if self._credentials == Credentials():
123
+ return None
122
124
  return base64.b64encode(json_dumps(self._login_params).encode()).decode()
123
125
 
124
126
  def _get_login_params(self, credentials: Credentials) -> dict[str, str]:
@@ -0,0 +1 @@
1
+ """Package for the cli."""
@@ -0,0 +1,6 @@
1
+ """Main module."""
2
+
3
+ from kasa.cli.main import cli
4
+
5
+ if __name__ == "__main__":
6
+ cli()
@@ -0,0 +1,231 @@
1
+ """Common cli module."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ import re
7
+ import sys
8
+ from contextlib import contextmanager
9
+ from functools import singledispatch, update_wrapper, wraps
10
+ from typing import Final
11
+
12
+ import asyncclick as click
13
+
14
+ from kasa import (
15
+ Device,
16
+ )
17
+
18
+ # Value for optional options if passed without a value
19
+ OPTIONAL_VALUE_FLAG: Final = "_FLAG_"
20
+
21
+ # Block list of commands which require no update
22
+ SKIP_UPDATE_COMMANDS = ["raw-command", "command"]
23
+
24
+ pass_dev = click.make_pass_decorator(Device) # type: ignore[type-abstract]
25
+
26
+
27
+ try:
28
+ from rich import print as _echo
29
+ except ImportError:
30
+ # Strip out rich formatting if rich is not installed
31
+ # but only lower case tags to avoid stripping out
32
+ # raw data from the device that is printed from
33
+ # the device state.
34
+ rich_formatting = re.compile(r"\[/?[a-z]+]")
35
+
36
+ def _strip_rich_formatting(echo_func):
37
+ """Strip rich formatting from messages."""
38
+
39
+ @wraps(echo_func)
40
+ def wrapper(message=None, *args, **kwargs):
41
+ if message is not None:
42
+ message = rich_formatting.sub("", message)
43
+ echo_func(message, *args, **kwargs)
44
+
45
+ return wrapper
46
+
47
+ _echo = _strip_rich_formatting(click.echo)
48
+
49
+
50
+ def echo(*args, **kwargs):
51
+ """Print a message."""
52
+ ctx = click.get_current_context().find_root()
53
+ if "json" not in ctx.params or ctx.params["json"] is False:
54
+ _echo(*args, **kwargs)
55
+
56
+
57
+ def error(msg: str):
58
+ """Print an error and exit."""
59
+ echo(f"[bold red]{msg}[/bold red]")
60
+ sys.exit(1)
61
+
62
+
63
+ def json_formatter_cb(result, **kwargs):
64
+ """Format and output the result as JSON, if requested."""
65
+ if not kwargs.get("json"):
66
+ return
67
+
68
+ @singledispatch
69
+ def to_serializable(val):
70
+ """Regular obj-to-string for json serialization.
71
+
72
+ The singledispatch trick is from hynek: https://hynek.me/articles/serialization/
73
+ """
74
+ return str(val)
75
+
76
+ @to_serializable.register(Device)
77
+ def _device_to_serializable(val: Device):
78
+ """Serialize smart device data, just using the last update raw payload."""
79
+ return val.internal_state
80
+
81
+ json_content = json.dumps(result, indent=4, default=to_serializable)
82
+ print(json_content)
83
+
84
+
85
+ def pass_dev_or_child(wrapped_function):
86
+ """Pass the device or child to the click command based on the child options."""
87
+ child_help = (
88
+ "Child ID or alias for controlling sub-devices. "
89
+ "If no value provided will show an interactive prompt allowing you to "
90
+ "select a child."
91
+ )
92
+ child_index_help = "Child index controlling sub-devices"
93
+
94
+ @contextmanager
95
+ def patched_device_update(parent: Device, child: Device):
96
+ try:
97
+ orig_update = child.update
98
+ # patch child update method. Can be removed once update can be called
99
+ # directly on child devices
100
+ child.update = parent.update # type: ignore[method-assign]
101
+ yield child
102
+ finally:
103
+ child.update = orig_update # type: ignore[method-assign]
104
+
105
+ @click.pass_obj
106
+ @click.pass_context
107
+ @click.option(
108
+ "--child",
109
+ "--name",
110
+ is_flag=False,
111
+ flag_value=OPTIONAL_VALUE_FLAG,
112
+ default=None,
113
+ required=False,
114
+ type=click.STRING,
115
+ help=child_help,
116
+ )
117
+ @click.option(
118
+ "--child-index",
119
+ "--index",
120
+ required=False,
121
+ default=None,
122
+ type=click.INT,
123
+ help=child_index_help,
124
+ )
125
+ async def wrapper(ctx: click.Context, dev, *args, child, child_index, **kwargs):
126
+ if child := await _get_child_device(dev, child, child_index, ctx.info_name):
127
+ ctx.obj = ctx.with_resource(patched_device_update(dev, child))
128
+ dev = child
129
+ return await ctx.invoke(wrapped_function, dev, *args, **kwargs)
130
+
131
+ # Update wrapper function to look like wrapped function
132
+ return update_wrapper(wrapper, wrapped_function)
133
+
134
+
135
+ async def _get_child_device(
136
+ device: Device, child_option, child_index_option, info_command
137
+ ) -> Device | None:
138
+ def _list_children():
139
+ return "\n".join(
140
+ [
141
+ f"{idx}: {child.device_id} ({child.alias})"
142
+ for idx, child in enumerate(device.children)
143
+ ]
144
+ )
145
+
146
+ if child_option is None and child_index_option is None:
147
+ return None
148
+
149
+ if info_command in SKIP_UPDATE_COMMANDS:
150
+ # The device hasn't had update called (e.g. for cmd_command)
151
+ # The way child devices are accessed requires a ChildDevice to
152
+ # wrap the communications. Doing this properly would require creating
153
+ # a common interfaces for both IOT and SMART child devices.
154
+ # As a stop-gap solution, we perform an update instead.
155
+ await device.update()
156
+
157
+ if not device.children:
158
+ error(f"Device: {device.host} does not have children")
159
+
160
+ if child_option is not None and child_index_option is not None:
161
+ raise click.BadOptionUsage(
162
+ "child", "Use either --child or --child-index, not both."
163
+ )
164
+
165
+ if child_option is not None:
166
+ if child_option is OPTIONAL_VALUE_FLAG:
167
+ msg = _list_children()
168
+ child_index_option = click.prompt(
169
+ f"\n{msg}\nEnter the index number of the child device",
170
+ type=click.IntRange(0, len(device.children) - 1),
171
+ )
172
+ elif child := device.get_child_device(child_option):
173
+ echo(f"Targeting child device {child.alias}")
174
+ return child
175
+ else:
176
+ error(
177
+ "No child device found with device_id or name: "
178
+ f"{child_option} children are:\n{_list_children()}"
179
+ )
180
+
181
+ if child_index_option + 1 > len(device.children) or child_index_option < 0:
182
+ error(
183
+ f"Invalid index {child_index_option}, "
184
+ f"device has {len(device.children)} children"
185
+ )
186
+ child_by_index = device.children[child_index_option]
187
+ echo(f"Targeting child device {child_by_index.alias}")
188
+ return child_by_index
189
+
190
+
191
+ def CatchAllExceptions(cls):
192
+ """Capture all exceptions and prints them nicely.
193
+
194
+ Idea from https://stackoverflow.com/a/44347763 and
195
+ https://stackoverflow.com/questions/52213375
196
+ """
197
+
198
+ def _handle_exception(debug, exc):
199
+ if isinstance(exc, click.ClickException):
200
+ raise
201
+ # Handle exit request from click.
202
+ if isinstance(exc, click.exceptions.Exit):
203
+ sys.exit(exc.exit_code)
204
+
205
+ echo(f"Raised error: {exc}")
206
+ if debug:
207
+ raise
208
+ echo("Run with --debug enabled to see stacktrace")
209
+ sys.exit(1)
210
+
211
+ class _CommandCls(cls):
212
+ _debug = False
213
+
214
+ async def make_context(self, info_name, args, parent=None, **extra):
215
+ self._debug = any(
216
+ [arg for arg in args if arg in ["--debug", "-d", "--verbose", "-v"]]
217
+ )
218
+ try:
219
+ return await super().make_context(
220
+ info_name, args, parent=parent, **extra
221
+ )
222
+ except Exception as exc:
223
+ _handle_exception(self._debug, exc)
224
+
225
+ async def invoke(self, ctx):
226
+ try:
227
+ return await super().invoke(ctx)
228
+ except Exception as exc:
229
+ _handle_exception(self._debug, exc)
230
+
231
+ return _CommandCls