python-kasa 0.7.0.2__tar.gz → 0.7.0.4__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 (251) hide show
  1. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/CHANGELOG.md +140 -0
  2. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/PKG-INFO +1 -1
  3. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/aestransport.py +12 -2
  4. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/exceptions.py +2 -0
  5. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/httpclient.py +19 -4
  6. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/autooff.py +0 -6
  7. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/batterysensor.py +4 -0
  8. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/cloud.py +9 -2
  9. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/devicemodule.py +7 -0
  10. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/firmware.py +6 -4
  11. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/frostprotection.py +4 -0
  12. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/humiditysensor.py +4 -0
  13. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/led.py +4 -1
  14. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/lighteffect.py +4 -1
  15. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/lightpreset.py +4 -2
  16. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/lightstripeffect.py +3 -1
  17. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/lighttransition.py +6 -2
  18. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/reportmode.py +4 -0
  19. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/temperaturecontrol.py +22 -21
  20. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/temperaturesensor.py +4 -0
  21. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/smartchilddevice.py +2 -0
  22. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/smartdevice.py +135 -20
  23. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/smartmodule.py +49 -2
  24. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smartprotocol.py +38 -10
  25. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_temperaturecontrol.py +9 -1
  26. python_kasa-0.7.0.4/kasa/tests/test_smartdevice.py +430 -0
  27. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_smartprotocol.py +17 -1
  28. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/pyproject.toml +1 -1
  29. python_kasa-0.7.0.2/kasa/tests/test_smartdevice.py +0 -234
  30. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/LICENSE +0 -0
  31. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/README.md +0 -0
  32. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/__init__.py +0 -0
  33. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/cli.py +0 -0
  34. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/credentials.py +0 -0
  35. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/device.py +0 -0
  36. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/device_factory.py +0 -0
  37. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/device_type.py +0 -0
  38. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/deviceconfig.py +0 -0
  39. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/discover.py +0 -0
  40. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/emeterstatus.py +0 -0
  41. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/feature.py +0 -0
  42. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/interfaces/__init__.py +0 -0
  43. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/interfaces/energy.py +0 -0
  44. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/interfaces/fan.py +0 -0
  45. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/interfaces/led.py +0 -0
  46. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/interfaces/light.py +0 -0
  47. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/interfaces/lighteffect.py +0 -0
  48. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/interfaces/lightpreset.py +0 -0
  49. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/__init__.py +0 -0
  50. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/effects.py +0 -0
  51. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/iotbulb.py +0 -0
  52. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/iotdevice.py +0 -0
  53. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/iotdimmer.py +0 -0
  54. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/iotlightstrip.py +0 -0
  55. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/iotmodule.py +0 -0
  56. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/iotplug.py +0 -0
  57. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/iotstrip.py +0 -0
  58. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/__init__.py +0 -0
  59. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/ambientlight.py +0 -0
  60. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/antitheft.py +0 -0
  61. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/cloud.py +0 -0
  62. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/countdown.py +0 -0
  63. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/emeter.py +0 -0
  64. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/led.py +0 -0
  65. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/light.py +0 -0
  66. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/lighteffect.py +0 -0
  67. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/lightpreset.py +0 -0
  68. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/motion.py +0 -0
  69. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/rulemodule.py +0 -0
  70. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/schedule.py +0 -0
  71. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/time.py +0 -0
  72. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iot/modules/usage.py +0 -0
  73. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/iotprotocol.py +0 -0
  74. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/json.py +0 -0
  75. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/klaptransport.py +0 -0
  76. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/module.py +0 -0
  77. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/modulemapping.py +0 -0
  78. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/modulemapping.pyi +0 -0
  79. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/protocol.py +0 -0
  80. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/py.typed +0 -0
  81. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/__init__.py +0 -0
  82. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/effects.py +0 -0
  83. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/__init__.py +0 -0
  84. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/alarm.py +0 -0
  85. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/brightness.py +0 -0
  86. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/childdevice.py +0 -0
  87. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/color.py +0 -0
  88. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/colortemperature.py +0 -0
  89. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/contactsensor.py +0 -0
  90. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/energy.py +0 -0
  91. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/fan.py +0 -0
  92. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/light.py +0 -0
  93. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/time.py +0 -0
  94. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/smart/modules/waterleaksensor.py +0 -0
  95. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/__init__.py +0 -0
  96. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/conftest.py +0 -0
  97. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/device_fixtures.py +0 -0
  98. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/discovery_fixtures.py +0 -0
  99. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fakeprotocol_iot.py +0 -0
  100. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fakeprotocol_smart.py +0 -0
  101. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtureinfo.py +0 -0
  102. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json +0 -0
  103. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/EP40(US)_1.0_1.0.2.json +0 -0
  104. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/ES20M(US)_1.0_1.0.8.json +0 -0
  105. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS100(UK)_1.0_1.2.6.json +0 -0
  106. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS100(UK)_4.1_1.1.0.json +0 -0
  107. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS100(US)_1.0_1.2.5.json +0 -0
  108. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS100(US)_2.0_1.5.6.json +0 -0
  109. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS103(US)_1.0_1.5.7.json +0 -0
  110. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS103(US)_2.1_1.1.2.json +0 -0
  111. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS103(US)_2.1_1.1.4.json +0 -0
  112. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS105(US)_1.0_1.5.6.json +0 -0
  113. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS107(US)_1.0_1.0.8.json +0 -0
  114. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS110(EU)_1.0_1.2.5.json +0 -0
  115. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS110(EU)_4.0_1.0.4.json +0 -0
  116. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS110(US)_1.0_1.2.6.json +0 -0
  117. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS200(US)_2.0_1.5.7.json +0 -0
  118. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS200(US)_5.0_1.0.2.json +0 -0
  119. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS210(US)_1.0_1.5.8.json +0 -0
  120. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS220(US)_1.0_1.5.7.json +0 -0
  121. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS220(US)_2.0_1.0.3.json +0 -0
  122. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS300(US)_1.0_1.0.10.json +0 -0
  123. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS300(US)_1.0_1.0.21.json +0 -0
  124. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS300(US)_2.0_1.0.12.json +0 -0
  125. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/HS300(US)_2.0_1.0.3.json +0 -0
  126. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL110(US)_1.0_1.8.11.json +0 -0
  127. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL120(US)_1.0_1.8.11.json +0 -0
  128. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL120(US)_1.0_1.8.6.json +0 -0
  129. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL125(US)_1.20_1.0.5.json +0 -0
  130. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL125(US)_2.0_1.0.7.json +0 -0
  131. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL125(US)_4.0_1.0.5.json +0 -0
  132. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json +0 -0
  133. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL130(US)_1.0_1.8.11.json +0 -0
  134. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL135(US)_1.0_1.0.6.json +0 -0
  135. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.5.json +0 -0
  136. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.8.json +0 -0
  137. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL420L5(US)_1.0_1.0.2.json +0 -0
  138. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL430(UN)_2.0_1.0.8.json +0 -0
  139. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL430(US)_1.0_1.0.10.json +0 -0
  140. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL430(US)_2.0_1.0.11.json +0 -0
  141. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL430(US)_2.0_1.0.8.json +0 -0
  142. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL430(US)_2.0_1.0.9.json +0 -0
  143. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL50(US)_1.0_1.1.13.json +0 -0
  144. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL60(UN)_1.0_1.1.4.json +0 -0
  145. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json +0 -0
  146. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json +0 -0
  147. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.5.json +0 -0
  148. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json +0 -0
  149. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP115(EU)_1.0_1.0.16.json +0 -0
  150. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP115(US)_1.0_1.0.17.json +0 -0
  151. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP115(US)_1.0_1.0.21.json +0 -0
  152. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP125(US)_1.0_1.0.6.json +0 -0
  153. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP200(US)_3.0_1.0.3.json +0 -0
  154. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP303(UK)_1.0_1.0.3.json +0 -0
  155. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP303(US)_2.0_1.0.3.json +0 -0
  156. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP400(US)_1.0_1.0.10.json +0 -0
  157. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP400(US)_2.0_1.0.6.json +0 -0
  158. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP401(US)_1.0_1.0.0.json +0 -0
  159. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KP405(US)_1.0_1.0.5.json +0 -0
  160. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KS200M(US)_1.0_1.0.8.json +0 -0
  161. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KS220M(US)_1.0_1.0.4.json +0 -0
  162. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/KS230(US)_1.0_1.0.14.json +0 -0
  163. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/LB110(US)_1.0_1.8.11.json +0 -0
  164. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
  165. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
  166. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
  167. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +0 -0
  168. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
  169. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
  170. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
  171. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
  172. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
  173. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
  174. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
  175. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
  176. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
  177. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
  178. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
  179. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
  180. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
  181. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
  182. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
  183. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
  184. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
  185. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
  186. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
  187. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
  188. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
  189. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
  190. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P100_1.0.0_1.1.3.json +0 -0
  191. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P100_1.0.0_1.3.7.json +0 -0
  192. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P100_1.0.0_1.4.0.json +0 -0
  193. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
  194. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
  195. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
  196. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
  197. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
  198. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
  199. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
  200. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
  201. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
  202. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
  203. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
  204. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
  205. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
  206. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
  207. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
  208. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
  209. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
  210. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
  211. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
  212. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +0 -0
  213. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -0
  214. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/__init__.py +0 -0
  215. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/features/__init__.py +0 -0
  216. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/features/test_brightness.py +0 -0
  217. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/features/test_colortemp.py +0 -0
  218. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/__init__.py +0 -0
  219. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_autooff.py +0 -0
  220. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_contact.py +0 -0
  221. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_fan.py +0 -0
  222. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_firmware.py +0 -0
  223. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_humidity.py +0 -0
  224. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_light_effect.py +0 -0
  225. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_light_strip_effect.py +0 -0
  226. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_lighttransition.py +0 -0
  227. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_temperature.py +0 -0
  228. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/smart/modules/test_waterleak.py +0 -0
  229. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_aestransport.py +0 -0
  230. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_bulb.py +0 -0
  231. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_childdevice.py +0 -0
  232. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_cli.py +0 -0
  233. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_common_modules.py +0 -0
  234. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_device.py +0 -0
  235. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_device_factory.py +0 -0
  236. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_device_type.py +0 -0
  237. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_deviceconfig.py +0 -0
  238. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_dimmer.py +0 -0
  239. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_discovery.py +0 -0
  240. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_emeter.py +0 -0
  241. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_feature.py +0 -0
  242. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_httpclient.py +0 -0
  243. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_iotdevice.py +0 -0
  244. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_klapprotocol.py +0 -0
  245. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_lightstrip.py +0 -0
  246. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_plug.py +0 -0
  247. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_protocol.py +0 -0
  248. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_readme_examples.py +0 -0
  249. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_strip.py +0 -0
  250. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/tests/test_usage.py +0 -0
  251. {python_kasa-0.7.0.2 → python_kasa-0.7.0.4}/kasa/xortransport.py +0 -0
@@ -1,5 +1,27 @@
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)
4
+
5
+ [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.3...0.7.0.4)
6
+
7
+ Critical bugfixes for issues with P100s and thermostats.
8
+
9
+ **Fixed bugs:**
10
+
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)
13
+
14
+ ## [0.7.0.3](https://github.com/python-kasa/python-kasa/tree/0.7.0.3) (2024-07-04)
15
+
16
+ [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.2...0.7.0.3)
17
+
18
+ Critical bugfix for issue #1033 with ks225 and S505D light preset module errors.
19
+ Partially fixes light preset module errors with L920 and L930.
20
+
21
+ **Fixed bugs:**
22
+
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)
24
+
3
25
  ## [0.7.0.2](https://github.com/python-kasa/python-kasa/tree/0.7.0.2) (2024-07-01)
4
26
 
5
27
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.1...0.7.0.2)
@@ -71,6 +93,7 @@ For more information on the changes please checkout our [documentation on the AP
71
93
 
72
94
  **Implemented enhancements:**
73
95
 
96
+ - Radiator support \(KE100\) [\#422](https://github.com/python-kasa/python-kasa/issues/422)
74
97
  - Cleanup cli output [\#1000](https://github.com/python-kasa/python-kasa/pull/1000) (@rytilahti)
75
98
  - Update mode, time, rssi and report\_interval feature names/units [\#995](https://github.com/python-kasa/python-kasa/pull/995) (@sdb9696)
76
99
  - Add timezone to on\_since attributes [\#978](https://github.com/python-kasa/python-kasa/pull/978) (@sdb9696)
@@ -133,6 +156,15 @@ For more information on the changes please checkout our [documentation on the AP
133
156
 
134
157
  **Fixed bugs:**
135
158
 
159
+ - TAPO P100 \(hw 1.0.0, sw 1.1.3\) EU plug with 0.6.2.1 Kasa results JSON\_DECODE\_FAIL\_ERROR [\#819](https://github.com/python-kasa/python-kasa/issues/819)
160
+ - Cannot add Tapo Plug P110 to Home Assistant 2024.2.3 - Error in debug mode [\#797](https://github.com/python-kasa/python-kasa/issues/797)
161
+ - KS240 gets discovered but will not authenticate [\#749](https://github.com/python-kasa/python-kasa/issues/749)
162
+ - Individual commands do not work on discovered devices [\#71](https://github.com/python-kasa/python-kasa/issues/71)
163
+ - SMART.TAPOHUB does not work with 0.7.0 dev2 [\#958](https://github.com/python-kasa/python-kasa/issues/958)
164
+ - Fix --help on subcommands [\#885](https://github.com/python-kasa/python-kasa/issues/885)
165
+ - "Unclosed client session" Trying to set brightness on Tapo Bulb [\#828](https://github.com/python-kasa/python-kasa/issues/828)
166
+ - Error when trying to discover new Tapo P110 plug [\#818](https://github.com/python-kasa/python-kasa/issues/818)
167
+ - Individual errors cause failing the whole query [\#616](https://github.com/python-kasa/python-kasa/issues/616)
136
168
  - Fix smart led status to report rule status [\#1002](https://github.com/python-kasa/python-kasa/pull/1002) (@sdb9696)
137
169
  - Demote device\_time back to debug [\#1001](https://github.com/python-kasa/python-kasa/pull/1001) (@rytilahti)
138
170
  - Add supported check to light transition module [\#971](https://github.com/python-kasa/python-kasa/pull/971) (@sdb9696)
@@ -188,6 +220,8 @@ For more information on the changes please checkout our [documentation on the AP
188
220
 
189
221
  **Documentation updates:**
190
222
 
223
+ - Document device features [\#755](https://github.com/python-kasa/python-kasa/issues/755)
224
+ - Clean up the README [\#979](https://github.com/python-kasa/python-kasa/issues/979)
191
225
  - Cleanup README to use the new cli format [\#999](https://github.com/python-kasa/python-kasa/pull/999) (@rytilahti)
192
226
  - Add 0.7 api changes section to docs [\#996](https://github.com/python-kasa/python-kasa/pull/996) (@sdb9696)
193
227
  - Update docs with more howto examples [\#968](https://github.com/python-kasa/python-kasa/pull/968) (@sdb9696)
@@ -278,6 +312,10 @@ For more information on the changes please checkout our [documentation on the AP
278
312
 
279
313
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.1...0.6.2)
280
314
 
315
+ Release highlights:
316
+ * Support for tapo power strips (P300)
317
+ * Performance improvements and bug fixes
318
+
281
319
  **Implemented enhancements:**
282
320
 
283
321
  - Implement alias set for tapodevice [\#721](https://github.com/python-kasa/python-kasa/pull/721) (@rytilahti)
@@ -314,6 +352,11 @@ For more information on the changes please checkout our [documentation on the AP
314
352
 
315
353
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.0.1...0.6.1)
316
354
 
355
+ Release highlights:
356
+ * Support for tapo wall switches
357
+ * Support for unprovisioned devices
358
+ * Performance and stability improvements
359
+
317
360
  **Implemented enhancements:**
318
361
 
319
362
  - Add support for tapo wall switches \(S500D\) [\#704](https://github.com/python-kasa/python-kasa/pull/704) (@bdraco)
@@ -365,6 +408,8 @@ For more information on the changes please checkout our [documentation on the AP
365
408
 
366
409
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.0...0.6.0.1)
367
410
 
411
+ A patch release to improve the protocol handling.
412
+
368
413
  **Fixed bugs:**
369
414
 
370
415
  - Fix httpclient exceptions on read and improve error info [\#655](https://github.com/python-kasa/python-kasa/pull/655) (@sdb9696)
@@ -382,6 +427,19 @@ For more information on the changes please checkout our [documentation on the AP
382
427
 
383
428
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.4...0.6.0)
384
429
 
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
+
441
+ Special thanks goes to @SimonWilkinson who created the initial PR for the new communication protocol!
442
+
385
443
  **Breaking changes:**
386
444
 
387
445
  - Add DeviceConfig to allow specifying configuration parameters [\#569](https://github.com/python-kasa/python-kasa/pull/569) (@sdb9696)
@@ -389,6 +447,9 @@ For more information on the changes please checkout our [documentation on the AP
389
447
 
390
448
  **Implemented enhancements:**
391
449
 
450
+ - Support for KS225\(US\) Light Dimmer and KS205\(US\) Light Switch [\#589](https://github.com/python-kasa/python-kasa/issues/589)
451
+ - Set timeout using command line parameters [\#310](https://github.com/python-kasa/python-kasa/issues/310)
452
+ - Implement the new protocol \(HTTP over 80/tcp, 20002/udp for discovery\) [\#115](https://github.com/python-kasa/python-kasa/issues/115)
392
453
  - Get child emeters with CLI [\#623](https://github.com/python-kasa/python-kasa/pull/623) (@Obbay2)
393
454
  - Avoid linear search for emeter realtime and emeter\_today [\#622](https://github.com/python-kasa/python-kasa/pull/622) (@bdraco)
394
455
  - Add update-credentials command [\#620](https://github.com/python-kasa/python-kasa/pull/620) (@rytilahti)
@@ -415,6 +476,7 @@ For more information on the changes please checkout our [documentation on the AP
415
476
 
416
477
  **Fixed bugs:**
417
478
 
479
+ - dump\_devinfo crashes when credentials are not given [\#591](https://github.com/python-kasa/python-kasa/issues/591)
418
480
  - Fix connection indeterminate state on cancellation [\#636](https://github.com/python-kasa/python-kasa/pull/636) (@bdraco)
419
481
  - Check the ct range for color temp support [\#619](https://github.com/python-kasa/python-kasa/pull/619) (@rytilahti)
420
482
  - Fix cli discover bug with None username/password [\#615](https://github.com/python-kasa/python-kasa/pull/615) (@sdb9696)
@@ -423,6 +485,7 @@ For more information on the changes please checkout our [documentation on the AP
423
485
 
424
486
  **Documentation updates:**
425
487
 
488
+ - Update the documentation for 0.6 release [\#600](https://github.com/python-kasa/python-kasa/issues/600)
426
489
  - Update docs for newer devices and DeviceConfig [\#614](https://github.com/python-kasa/python-kasa/pull/614) (@sdb9696)
427
490
  - Update readme with clearer instructions, tapo support [\#571](https://github.com/python-kasa/python-kasa/pull/571) (@rytilahti)
428
491
  - Add some more external links to README [\#541](https://github.com/python-kasa/python-kasa/pull/541) (@rytilahti)
@@ -469,6 +532,15 @@ For more information on the changes please checkout our [documentation on the AP
469
532
 
470
533
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.3...0.5.4)
471
534
 
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
+
542
+ As always, see the full changelog for details.
543
+
472
544
  **Implemented enhancements:**
473
545
 
474
546
  - Add a connect\_single method to Discover to avoid the need for UDP [\#528](https://github.com/python-kasa/python-kasa/pull/528) (@bdraco)
@@ -507,6 +579,8 @@ For more information on the changes please checkout our [documentation on the AP
507
579
 
508
580
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.2...0.5.3)
509
581
 
582
+ This release adds support for defining the device port and introduces dependency on async-timeout which improves timeout handling.
583
+
510
584
  **Implemented enhancements:**
511
585
 
512
586
  - Make device port configurable [\#471](https://github.com/python-kasa/python-kasa/pull/471) (@karpach)
@@ -524,6 +598,10 @@ For more information on the changes please checkout our [documentation on the AP
524
598
 
525
599
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.1...0.5.2)
526
600
 
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.
603
+ * Drops Python 3.7 support as it is no longer maintained.
604
+
527
605
  **Breaking changes:**
528
606
 
529
607
  - Drop python 3.7 support [\#455](https://github.com/python-kasa/python-kasa/pull/455) (@rytilahti)
@@ -537,6 +615,9 @@ For more information on the changes please checkout our [documentation on the AP
537
615
 
538
616
  **Fixed bugs:**
539
617
 
618
+ - Request for KP405 Support - Dimmable Plug [\#469](https://github.com/python-kasa/python-kasa/issues/469)
619
+ - Issue printing device in on\_discovered: pydantic.error\_wrappers.ValidationError: 3 validation errors for SmartBulbPreset [\#439](https://github.com/python-kasa/python-kasa/issues/439)
620
+ - Possible firmware issue with KL125 \(1.0.7 Build 211009 Rel.172044\) [\#345](https://github.com/python-kasa/python-kasa/issues/345)
540
621
  - Exclude querying certain modules for KL125\(US\) which cause crashes [\#451](https://github.com/python-kasa/python-kasa/pull/451) (@brianthedavis)
541
622
  - Return result objects for cli discover and implicit 'state' [\#446](https://github.com/python-kasa/python-kasa/pull/446) (@rytilahti)
542
623
  - Allow effect presets seen on light strips [\#440](https://github.com/python-kasa/python-kasa/pull/440) (@rytilahti)
@@ -553,6 +634,13 @@ For more information on the changes please checkout our [documentation on the AP
553
634
 
554
635
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.0...0.5.1)
555
636
 
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
642
+ * Dependency pinning is relaxed to give downstreams more control
643
+
556
644
  **Breaking changes:**
557
645
 
558
646
  - Implement changing the bulb turn-on behavior [\#381](https://github.com/python-kasa/python-kasa/pull/381) (@rytilahti)
@@ -569,11 +657,16 @@ For more information on the changes please checkout our [documentation on the AP
569
657
 
570
658
  **Fixed bugs:**
571
659
 
660
+ - cli.py usage year and month options do not output data as expected [\#373](https://github.com/python-kasa/python-kasa/issues/373)
661
+ - cli.py usage --year command passes year argument incorrectly [\#371](https://github.com/python-kasa/python-kasa/issues/371)
662
+ - KP303 reporting as device off [\#319](https://github.com/python-kasa/python-kasa/issues/319)
663
+ - HS210 not updating the state correctly [\#193](https://github.com/python-kasa/python-kasa/issues/193)
572
664
  - Fix year emeter for cli by using kwarg for year parameter [\#372](https://github.com/python-kasa/python-kasa/pull/372) (@rytilahti)
573
665
  - Return usage.get\_{monthstat,daystat} in expected format [\#394](https://github.com/python-kasa/python-kasa/pull/394) (@jules43)
574
666
 
575
667
  **Documentation updates:**
576
668
 
669
+ - Update misleading docs about supported devices \(was: add support for EP25 plug\) [\#367](https://github.com/python-kasa/python-kasa/issues/367)
577
670
  - Minor fixes to smartbulb docs [\#431](https://github.com/python-kasa/python-kasa/pull/431) (@rytilahti)
578
671
  - Add a note that transition is not supported by all devices [\#398](https://github.com/python-kasa/python-kasa/pull/398) (@rytilahti)
579
672
  - fix more outdated CLI examples, remove EP40 from bulb list [\#383](https://github.com/python-kasa/python-kasa/pull/383) (@HankB)
@@ -583,6 +676,10 @@ For more information on the changes please checkout our [documentation on the AP
583
676
  - Update README to add missing models and fix a link [\#351](https://github.com/python-kasa/python-kasa/pull/351) (@rytilahti)
584
677
  - Add KP125 test fixture and support note. [\#350](https://github.com/python-kasa/python-kasa/pull/350) (@jalseth)
585
678
 
679
+ **Closed issues:**
680
+
681
+ - Add support for setting default behaviors for a soft or hard power on of the bulb [\#365](https://github.com/python-kasa/python-kasa/issues/365)
682
+
586
683
  **Merged pull requests:**
587
684
 
588
685
  - Some release preparation janitoring [\#432](https://github.com/python-kasa/python-kasa/pull/432) (@rytilahti)
@@ -605,18 +702,43 @@ For more information on the changes please checkout our [documentation on the AP
605
702
 
606
703
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.4.3...0.5.0)
607
704
 
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.
720
+ Pull requests improving the functionality of modules as well as adding better interfaces to device classes are welcome!
721
+
608
722
  **Breaking changes:**
609
723
 
610
724
  - Drop deprecated, type-specific options in favor of --type [\#336](https://github.com/python-kasa/python-kasa/pull/336) (@rytilahti)
611
725
  - Convert the codebase to be more modular [\#299](https://github.com/python-kasa/python-kasa/pull/299) (@rytilahti)
612
726
 
727
+ **Implemented enhancements:**
728
+
729
+ - Improve HS220 support [\#44](https://github.com/python-kasa/python-kasa/issues/44)
730
+
613
731
  **Fixed bugs:**
614
732
 
733
+ - Skip running discovery on --help on subcommands [\#122](https://github.com/python-kasa/python-kasa/issues/122)
615
734
  - Avoid retrying open\_connection on unrecoverable errors [\#340](https://github.com/python-kasa/python-kasa/pull/340) (@bdraco)
616
735
  - Avoid discovery on --help [\#335](https://github.com/python-kasa/python-kasa/pull/335) (@rytilahti)
617
736
 
618
737
  **Documentation updates:**
619
738
 
739
+ - Trying to poll device every 5 seconds but getting asyncio errors [\#316](https://github.com/python-kasa/python-kasa/issues/316)
740
+ - Docs: Smart Strip - Emeter feature Note [\#257](https://github.com/python-kasa/python-kasa/issues/257)
741
+ - Documentation addition: Smartplug access to internet ntp server pool. [\#129](https://github.com/python-kasa/python-kasa/issues/129)
620
742
  - Export modules & make sphinx happy [\#334](https://github.com/python-kasa/python-kasa/pull/334) (@rytilahti)
621
743
  - Various documentation updates [\#333](https://github.com/python-kasa/python-kasa/pull/333) (@rytilahti)
622
744
 
@@ -630,6 +752,7 @@ For more information on the changes please checkout our [documentation on the AP
630
752
 
631
753
  **Fixed bugs:**
632
754
 
755
+ - Divide by zero when HS300 powerstrip is discovered [\#292](https://github.com/python-kasa/python-kasa/issues/292)
633
756
  - Ensure bulb state is restored when turning back on [\#330](https://github.com/python-kasa/python-kasa/pull/330) (@bdraco)
634
757
 
635
758
  **Merged pull requests:**
@@ -650,6 +773,8 @@ For more information on the changes please checkout our [documentation on the AP
650
773
 
651
774
  **Fixed bugs:**
652
775
 
776
+ - TypeError: \_\_init\_\_\(\) got an unexpected keyword argument 'package\_name' [\#311](https://github.com/python-kasa/python-kasa/issues/311)
777
+ - RuntimeError: Event loop is closed on WSL [\#294](https://github.com/python-kasa/python-kasa/issues/294)
653
778
  - Don't crash on devices not reporting features [\#317](https://github.com/python-kasa/python-kasa/pull/317) (@rytilahti)
654
779
 
655
780
  **Merged pull requests:**
@@ -685,6 +810,8 @@ For more information on the changes please checkout our [documentation on the AP
685
810
 
686
811
  **Fixed bugs:**
687
812
 
813
+ - Discovery on WSL results in OSError: \[Errno 22\] Invalid argument [\#246](https://github.com/python-kasa/python-kasa/issues/246)
814
+ - New firmware for HS103 blocking local access? [\#42](https://github.com/python-kasa/python-kasa/issues/42)
688
815
  - Pin mistune to \<2.0.0 to fix doc builds [\#270](https://github.com/python-kasa/python-kasa/pull/270) (@rytilahti)
689
816
  - Catch exceptions raised on unknown devices during discovery [\#240](https://github.com/python-kasa/python-kasa/pull/240) (@rytilahti)
690
817
 
@@ -704,6 +831,8 @@ For more information on the changes please checkout our [documentation on the AP
704
831
 
705
832
  **Implemented enhancements:**
706
833
 
834
+ - KL430 support [\#67](https://github.com/python-kasa/python-kasa/issues/67)
835
+ - Improve retry logic for discovery, messaging \(was: Handle empty responses\) [\#38](https://github.com/python-kasa/python-kasa/issues/38)
707
836
  - Fix lock being unexpectedly reset on close [\#218](https://github.com/python-kasa/python-kasa/pull/218) (@bdraco)
708
837
  - Avoid calling pformat unless debug logging is enabled [\#217](https://github.com/python-kasa/python-kasa/pull/217) (@bdraco)
709
838
  - Keep connection open and lock to prevent duplicate requests [\#213](https://github.com/python-kasa/python-kasa/pull/213) (@bdraco)
@@ -720,6 +849,10 @@ For more information on the changes please checkout our [documentation on the AP
720
849
 
721
850
  **Fixed bugs:**
722
851
 
852
+ - KL430: Throw error for Device specific information [\#189](https://github.com/python-kasa/python-kasa/issues/189)
853
+ - `Unable to find a value for 'current'` error when attempting to query KL125 bulb emeter [\#142](https://github.com/python-kasa/python-kasa/issues/142)
854
+ - `Unknown color temperature range` error when attempting to query KL125 bulb state [\#141](https://github.com/python-kasa/python-kasa/issues/141)
855
+ - HS300 Children plugs have emeter [\#64](https://github.com/python-kasa/python-kasa/issues/64)
723
856
  - dump\_devinfo: handle latitude/longitude keys properly [\#175](https://github.com/python-kasa/python-kasa/pull/175) (@rytilahti)
724
857
  - Simplify discovery query, refactor dump-devinfo [\#147](https://github.com/python-kasa/python-kasa/pull/147) (@rytilahti)
725
858
  - Return None instead of raising an exception on missing, valid emeter keys [\#146](https://github.com/python-kasa/python-kasa/pull/146) (@rytilahti)
@@ -728,6 +861,9 @@ For more information on the changes please checkout our [documentation on the AP
728
861
 
729
862
  **Documentation updates:**
730
863
 
864
+ - Discover does not support specifying network interface [\#167](https://github.com/python-kasa/python-kasa/issues/167)
865
+ - Add ability to control individual sockets on KP400 [\#121](https://github.com/python-kasa/python-kasa/issues/121)
866
+ - Improve poetry usage documentation [\#60](https://github.com/python-kasa/python-kasa/issues/60)
731
867
  - Improve cli documentation for bulbs and power strips [\#123](https://github.com/python-kasa/python-kasa/pull/123) (@rytilahti)
732
868
 
733
869
  **Merged pull requests:**
@@ -773,6 +909,10 @@ For more information on the changes please checkout our [documentation on the AP
773
909
 
774
910
  - Add commands to control the wifi settings [\#45](https://github.com/python-kasa/python-kasa/pull/45) (@rytilahti)
775
911
 
912
+ **Fixed bugs:**
913
+
914
+ - HSV cli command not working [\#43](https://github.com/python-kasa/python-kasa/issues/43)
915
+
776
916
  **Merged pull requests:**
777
917
 
778
918
  - Add retries to protocol queries [\#65](https://github.com/python-kasa/python-kasa/pull/65) (@rytilahti)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-kasa
3
- Version: 0.7.0.2
3
+ Version: 0.7.0.4
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
@@ -144,7 +144,9 @@ class AesTransport(BaseTransport):
144
144
  try:
145
145
  error_code = SmartErrorCode.from_int(error_code_raw)
146
146
  except ValueError:
147
- _LOGGER.warning("Received unknown error code: %s", error_code_raw)
147
+ _LOGGER.warning(
148
+ "Device %s received unknown error code: %s", self._host, error_code_raw
149
+ )
148
150
  error_code = SmartErrorCode.INTERNAL_UNKNOWN_ERROR
149
151
  if error_code is SmartErrorCode.SUCCESS:
150
152
  return
@@ -214,10 +216,18 @@ class AesTransport(BaseTransport):
214
216
  """Login to the device."""
215
217
  try:
216
218
  await self.try_login(self._login_params)
219
+ _LOGGER.debug(
220
+ "%s: logged in with provided credentials",
221
+ self._host,
222
+ )
217
223
  except AuthenticationError as aex:
218
224
  try:
219
225
  if aex.error_code is not SmartErrorCode.LOGIN_ERROR:
220
226
  raise aex
227
+ _LOGGER.debug(
228
+ "%s: trying login with default TAPO credentials",
229
+ self._host,
230
+ )
221
231
  if self._default_credentials is None:
222
232
  self._default_credentials = get_default_credentials(
223
233
  DEFAULT_CREDENTIALS["TAPO"]
@@ -225,7 +235,7 @@ class AesTransport(BaseTransport):
225
235
  await self.perform_handshake()
226
236
  await self.try_login(self._get_login_params(self._default_credentials))
227
237
  _LOGGER.debug(
228
- "%s: logged in with default credentials",
238
+ "%s: logged in with default TAPO credentials",
229
239
  self._host,
230
240
  )
231
241
  except (AuthenticationError, _ConnectionError, TimeoutError):
@@ -128,6 +128,8 @@ class SmartErrorCode(IntEnum):
128
128
 
129
129
  # Library internal for unknown error codes
130
130
  INTERNAL_UNKNOWN_ERROR = -100_000
131
+ # Library internal for query errors
132
+ INTERNAL_QUERY_ERROR = -100_001
131
133
 
132
134
 
133
135
  SMART_RETRYABLE_ERRORS = [
@@ -75,13 +75,21 @@ class HttpClient:
75
75
  now = time.time()
76
76
  gap = now - self._last_request_time
77
77
  if gap < self._wait_between_requests:
78
- await asyncio.sleep(self._wait_between_requests - gap)
78
+ sleep = self._wait_between_requests - gap
79
+ _LOGGER.debug(
80
+ "Device %s waiting %s seconds to send request",
81
+ self._config.host,
82
+ sleep,
83
+ )
84
+ await asyncio.sleep(sleep)
79
85
 
80
86
  _LOGGER.debug("Posting to %s", url)
81
87
  response_data = None
82
88
  self._last_url = url
83
89
  self.client.cookie_jar.clear()
84
90
  return_json = bool(json)
91
+ client_timeout = aiohttp.ClientTimeout(total=self._config.timeout)
92
+
85
93
  # If json is not a dict send as data.
86
94
  # This allows the json parameter to be used to pass other
87
95
  # types of data such as async_generator and still have json
@@ -95,9 +103,10 @@ class HttpClient:
95
103
  params=params,
96
104
  data=data,
97
105
  json=json,
98
- timeout=self._config.timeout,
106
+ timeout=client_timeout,
99
107
  cookies=cookies_dict,
100
108
  headers=headers,
109
+ ssl=False,
101
110
  )
102
111
  async with resp:
103
112
  if resp.status == 200:
@@ -106,9 +115,15 @@ class HttpClient:
106
115
  response_data = json_loads(response_data.decode())
107
116
 
108
117
  except (aiohttp.ServerDisconnectedError, aiohttp.ClientOSError) as ex:
109
- if isinstance(ex, aiohttp.ClientOSError):
118
+ if not self._wait_between_requests:
119
+ _LOGGER.debug(
120
+ "Device %s received an os error, "
121
+ "enabling sequential request delay: %s",
122
+ self._config.host,
123
+ ex,
124
+ )
110
125
  self._wait_between_requests = self.WAIT_BETWEEN_REQUESTS_ON_OSERROR
111
- self._last_request_time = time.time()
126
+ self._last_request_time = time.time()
112
127
  raise _ConnectionError(
113
128
  f"Device connection error: {self._config.host}: {ex}", ex
114
129
  ) from ex
@@ -19,12 +19,6 @@ class AutoOff(SmartModule):
19
19
 
20
20
  def _initialize_features(self):
21
21
  """Initialize features after the initial update."""
22
- if not isinstance(self.data, dict):
23
- _LOGGER.warning(
24
- "No data available for module, skipping %s: %s", self, self.data
25
- )
26
- return
27
-
28
22
  self._add_feature(
29
23
  Feature(
30
24
  self._device,
@@ -43,6 +43,10 @@ class BatterySensor(SmartModule):
43
43
  )
44
44
  )
45
45
 
46
+ def query(self) -> dict:
47
+ """Query to execute during the update cycle."""
48
+ return {}
49
+
46
50
  @property
47
51
  def battery(self):
48
52
  """Return battery level."""
@@ -4,7 +4,6 @@ from __future__ import annotations
4
4
 
5
5
  from typing import TYPE_CHECKING
6
6
 
7
- from ...exceptions import SmartErrorCode
8
7
  from ...feature import Feature
9
8
  from ..smartmodule import SmartModule
10
9
 
@@ -17,6 +16,14 @@ class Cloud(SmartModule):
17
16
 
18
17
  QUERY_GETTER_NAME = "get_connect_cloud_state"
19
18
  REQUIRED_COMPONENT = "cloud_connect"
19
+ MINIMUM_UPDATE_INTERVAL_SECS = 60
20
+
21
+ def _post_update_hook(self):
22
+ """Perform actions after a device update.
23
+
24
+ Overrides the default behaviour to disable a module if the query returns
25
+ an error because the logic here is to treat that as not connected.
26
+ """
20
27
 
21
28
  def __init__(self, device: SmartDevice, module: str):
22
29
  super().__init__(device, module)
@@ -37,6 +44,6 @@ class Cloud(SmartModule):
37
44
  @property
38
45
  def is_connected(self):
39
46
  """Return True if device is connected to the cloud."""
40
- if isinstance(self.data, SmartErrorCode):
47
+ if self._has_data_error():
41
48
  return False
42
49
  return self.data["status"] == 0
@@ -10,6 +10,13 @@ class DeviceModule(SmartModule):
10
10
 
11
11
  REQUIRED_COMPONENT = "device"
12
12
 
13
+ def _post_update_hook(self):
14
+ """Perform actions after a device update.
15
+
16
+ Overrides the default behaviour to disable a module if the query returns
17
+ an error because this module is critical.
18
+ """
19
+
13
20
  def query(self) -> dict:
14
21
  """Query to execute during the update cycle."""
15
22
  query = {
@@ -13,9 +13,8 @@ from typing import TYPE_CHECKING, Any, Callable, Optional
13
13
  from async_timeout import timeout as asyncio_timeout
14
14
  from pydantic.v1 import BaseModel, Field, validator
15
15
 
16
- from ...exceptions import SmartErrorCode
17
16
  from ...feature import Feature
18
- from ..smartmodule import SmartModule
17
+ from ..smartmodule import SmartModule, allow_update_after
19
18
 
20
19
  if TYPE_CHECKING:
21
20
  from ..smartdevice import SmartDevice
@@ -67,6 +66,7 @@ class Firmware(SmartModule):
67
66
  """Implementation of firmware module."""
68
67
 
69
68
  REQUIRED_COMPONENT = "firmware"
69
+ MINIMUM_UPDATE_INTERVAL_SECS = 60 * 60 * 24
70
70
 
71
71
  def __init__(self, device: SmartDevice, module: str):
72
72
  super().__init__(device, module)
@@ -136,11 +136,11 @@ class Firmware(SmartModule):
136
136
  @property
137
137
  def firmware_update_info(self):
138
138
  """Return latest firmware information."""
139
- fw = self.data.get("get_latest_fw") or self.data
140
- if not self._device.is_cloud_connected or isinstance(fw, SmartErrorCode):
139
+ if not self._device.is_cloud_connected or self._has_data_error():
141
140
  # Error in response, probably disconnected from the cloud.
142
141
  return UpdateInfo(type=0, need_to_upgrade=False)
143
142
 
143
+ fw = self.data.get("get_latest_fw") or self.data
144
144
  return UpdateInfo.parse_obj(fw)
145
145
 
146
146
  @property
@@ -156,6 +156,7 @@ class Firmware(SmartModule):
156
156
  state = resp["get_fw_download_state"]
157
157
  return DownloadState(**state)
158
158
 
159
+ @allow_update_after
159
160
  async def update(
160
161
  self, progress_cb: Callable[[DownloadState], Coroutine] | None = None
161
162
  ):
@@ -213,6 +214,7 @@ class Firmware(SmartModule):
213
214
  and self.data["get_auto_update_info"]["enable"]
214
215
  )
215
216
 
217
+ @allow_update_after
216
218
  async def set_auto_update_enabled(self, enabled: bool):
217
219
  """Change autoupdate setting."""
218
220
  data = {**self.data["get_auto_update_info"], "enable": enabled}
@@ -14,6 +14,10 @@ class FrostProtection(SmartModule):
14
14
  REQUIRED_COMPONENT = "frost_protection"
15
15
  QUERY_GETTER_NAME = "get_frost_protection"
16
16
 
17
+ def query(self) -> dict:
18
+ """Query to execute during the update cycle."""
19
+ return {}
20
+
17
21
  @property
18
22
  def enabled(self) -> bool:
19
23
  """Return True if frost protection is on."""
@@ -45,6 +45,10 @@ class HumiditySensor(SmartModule):
45
45
  )
46
46
  )
47
47
 
48
+ def query(self) -> dict:
49
+ """Query to execute during the update cycle."""
50
+ return {}
51
+
48
52
  @property
49
53
  def humidity(self):
50
54
  """Return current humidity in percentage."""
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from ...interfaces.led import Led as LedInterface
6
- from ..smartmodule import SmartModule
6
+ from ..smartmodule import SmartModule, allow_update_after
7
7
 
8
8
 
9
9
  class Led(SmartModule, LedInterface):
@@ -11,6 +11,8 @@ class Led(SmartModule, LedInterface):
11
11
 
12
12
  REQUIRED_COMPONENT = "led"
13
13
  QUERY_GETTER_NAME = "get_led_info"
14
+ # Led queries can cause device to crash on P100
15
+ MINIMUM_UPDATE_INTERVAL_SECS = 60 * 60
14
16
 
15
17
  def query(self) -> dict:
16
18
  """Query to execute during the update cycle."""
@@ -29,6 +31,7 @@ class Led(SmartModule, LedInterface):
29
31
  """Return current led status."""
30
32
  return self.data["led_rule"] != "never"
31
33
 
34
+ @allow_update_after
32
35
  async def set_led(self, enable: bool):
33
36
  """Set led.
34
37
 
@@ -9,7 +9,7 @@ import copy
9
9
  from typing import Any
10
10
 
11
11
  from ..effects import SmartLightEffect
12
- from ..smartmodule import Module, SmartModule
12
+ from ..smartmodule import Module, SmartModule, allow_update_after
13
13
 
14
14
 
15
15
  class LightEffect(SmartModule, SmartLightEffect):
@@ -17,6 +17,7 @@ class LightEffect(SmartModule, SmartLightEffect):
17
17
 
18
18
  REQUIRED_COMPONENT = "light_effect"
19
19
  QUERY_GETTER_NAME = "get_dynamic_light_effect_rules"
20
+ MINIMUM_UPDATE_INTERVAL_SECS = 60
20
21
  AVAILABLE_BULB_EFFECTS = {
21
22
  "L1": "Party",
22
23
  "L2": "Relax",
@@ -130,6 +131,7 @@ class LightEffect(SmartModule, SmartLightEffect):
130
131
 
131
132
  return brightness
132
133
 
134
+ @allow_update_after
133
135
  async def set_brightness(
134
136
  self,
135
137
  brightness: int,
@@ -156,6 +158,7 @@ class LightEffect(SmartModule, SmartLightEffect):
156
158
 
157
159
  return await self.call("edit_dynamic_light_effect_rule", new_effect)
158
160
 
161
+ @allow_update_after
159
162
  async def set_custom_effect(
160
163
  self,
161
164
  effect_dict: dict,