python-kasa 0.7.0.1__tar.gz → 0.7.0.3__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.1 → python_kasa-0.7.0.3}/CHANGELOG.md +162 -15
  2. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/PKG-INFO +1 -1
  3. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/aestransport.py +7 -2
  4. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/device.py +5 -0
  5. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/exceptions.py +10 -0
  6. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/feature.py +3 -1
  7. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/iotstrip.py +9 -5
  8. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/module.py +3 -0
  9. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/effects.py +25 -0
  10. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/__init__.py +2 -0
  11. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/autooff.py +0 -6
  12. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/batterysensor.py +4 -0
  13. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/brightness.py +14 -1
  14. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/cloud.py +8 -2
  15. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/devicemodule.py +7 -0
  16. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/firmware.py +9 -3
  17. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/frostprotection.py +4 -0
  18. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/humiditysensor.py +4 -0
  19. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/lighteffect.py +70 -6
  20. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/lightpreset.py +1 -1
  21. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/lightstripeffect.py +38 -8
  22. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/lighttransition.py +101 -53
  23. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/reportmode.py +4 -0
  24. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/temperaturesensor.py +4 -0
  25. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/smartdevice.py +26 -4
  26. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/smartmodule.py +21 -1
  27. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smartprotocol.py +46 -6
  28. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/device_fixtures.py +8 -2
  29. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/discovery_fixtures.py +3 -1
  30. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fakeprotocol_smart.py +71 -2
  31. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtureinfo.py +21 -3
  32. python_kasa-0.7.0.3/kasa/tests/smart/modules/test_light_effect.py +83 -0
  33. python_kasa-0.7.0.3/kasa/tests/smart/modules/test_light_strip_effect.py +101 -0
  34. python_kasa-0.7.0.3/kasa/tests/smart/modules/test_lighttransition.py +80 -0
  35. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_aestransport.py +27 -0
  36. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_childdevice.py +21 -1
  37. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_common_modules.py +9 -5
  38. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_device_factory.py +35 -17
  39. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_smartdevice.py +83 -11
  40. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_smartprotocol.py +125 -7
  41. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/pyproject.toml +1 -1
  42. python_kasa-0.7.0.1/kasa/tests/smart/modules/test_light_effect.py +0 -41
  43. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/LICENSE +0 -0
  44. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/README.md +0 -0
  45. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/__init__.py +0 -0
  46. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/cli.py +0 -0
  47. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/credentials.py +0 -0
  48. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/device_factory.py +0 -0
  49. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/device_type.py +0 -0
  50. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/deviceconfig.py +0 -0
  51. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/discover.py +0 -0
  52. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/emeterstatus.py +0 -0
  53. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/httpclient.py +0 -0
  54. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/interfaces/__init__.py +0 -0
  55. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/interfaces/energy.py +0 -0
  56. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/interfaces/fan.py +0 -0
  57. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/interfaces/led.py +0 -0
  58. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/interfaces/light.py +0 -0
  59. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/interfaces/lighteffect.py +0 -0
  60. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/interfaces/lightpreset.py +0 -0
  61. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/__init__.py +0 -0
  62. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/effects.py +0 -0
  63. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/iotbulb.py +0 -0
  64. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/iotdevice.py +0 -0
  65. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/iotdimmer.py +0 -0
  66. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/iotlightstrip.py +0 -0
  67. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/iotmodule.py +0 -0
  68. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/iotplug.py +0 -0
  69. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/__init__.py +0 -0
  70. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/ambientlight.py +0 -0
  71. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/antitheft.py +0 -0
  72. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/cloud.py +0 -0
  73. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/countdown.py +0 -0
  74. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/emeter.py +0 -0
  75. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/led.py +0 -0
  76. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/light.py +0 -0
  77. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/lighteffect.py +0 -0
  78. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/lightpreset.py +0 -0
  79. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/motion.py +0 -0
  80. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/rulemodule.py +0 -0
  81. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/schedule.py +0 -0
  82. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/time.py +0 -0
  83. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iot/modules/usage.py +0 -0
  84. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/iotprotocol.py +0 -0
  85. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/json.py +0 -0
  86. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/klaptransport.py +0 -0
  87. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/modulemapping.py +0 -0
  88. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/modulemapping.pyi +0 -0
  89. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/protocol.py +0 -0
  90. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/py.typed +0 -0
  91. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/__init__.py +0 -0
  92. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/alarm.py +0 -0
  93. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/childdevice.py +0 -0
  94. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/color.py +0 -0
  95. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/colortemperature.py +0 -0
  96. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/contactsensor.py +0 -0
  97. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/energy.py +0 -0
  98. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/fan.py +0 -0
  99. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/led.py +0 -0
  100. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/light.py +0 -0
  101. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/temperaturecontrol.py +0 -0
  102. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/time.py +0 -0
  103. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/modules/waterleaksensor.py +0 -0
  104. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/smart/smartchilddevice.py +0 -0
  105. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/__init__.py +0 -0
  106. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/conftest.py +0 -0
  107. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fakeprotocol_iot.py +0 -0
  108. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/EP10(US)_1.0_1.0.2.json +0 -0
  109. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/EP40(US)_1.0_1.0.2.json +0 -0
  110. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/ES20M(US)_1.0_1.0.8.json +0 -0
  111. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS100(UK)_1.0_1.2.6.json +0 -0
  112. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS100(UK)_4.1_1.1.0.json +0 -0
  113. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS100(US)_1.0_1.2.5.json +0 -0
  114. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS100(US)_2.0_1.5.6.json +0 -0
  115. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS103(US)_1.0_1.5.7.json +0 -0
  116. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS103(US)_2.1_1.1.2.json +0 -0
  117. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS103(US)_2.1_1.1.4.json +0 -0
  118. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS105(US)_1.0_1.5.6.json +0 -0
  119. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS107(US)_1.0_1.0.8.json +0 -0
  120. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS110(EU)_1.0_1.2.5.json +0 -0
  121. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS110(EU)_4.0_1.0.4.json +0 -0
  122. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS110(US)_1.0_1.2.6.json +0 -0
  123. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS200(US)_2.0_1.5.7.json +0 -0
  124. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS200(US)_5.0_1.0.2.json +0 -0
  125. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS210(US)_1.0_1.5.8.json +0 -0
  126. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS220(US)_1.0_1.5.7.json +0 -0
  127. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS220(US)_2.0_1.0.3.json +0 -0
  128. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS300(US)_1.0_1.0.10.json +0 -0
  129. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS300(US)_1.0_1.0.21.json +0 -0
  130. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS300(US)_2.0_1.0.12.json +0 -0
  131. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/HS300(US)_2.0_1.0.3.json +0 -0
  132. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL110(US)_1.0_1.8.11.json +0 -0
  133. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL120(US)_1.0_1.8.11.json +0 -0
  134. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL120(US)_1.0_1.8.6.json +0 -0
  135. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL125(US)_1.20_1.0.5.json +0 -0
  136. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL125(US)_2.0_1.0.7.json +0 -0
  137. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL125(US)_4.0_1.0.5.json +0 -0
  138. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL130(EU)_1.0_1.8.8.json +0 -0
  139. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL130(US)_1.0_1.8.11.json +0 -0
  140. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL135(US)_1.0_1.0.6.json +0 -0
  141. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.5.json +0 -0
  142. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL400L5(US)_1.0_1.0.8.json +0 -0
  143. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL420L5(US)_1.0_1.0.2.json +0 -0
  144. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL430(UN)_2.0_1.0.8.json +0 -0
  145. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL430(US)_1.0_1.0.10.json +0 -0
  146. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL430(US)_2.0_1.0.11.json +0 -0
  147. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL430(US)_2.0_1.0.8.json +0 -0
  148. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL430(US)_2.0_1.0.9.json +0 -0
  149. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL50(US)_1.0_1.1.13.json +0 -0
  150. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL60(UN)_1.0_1.1.4.json +0 -0
  151. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KL60(US)_1.0_1.1.13.json +0 -0
  152. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP100(US)_3.0_1.0.1.json +0 -0
  153. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.5.json +0 -0
  154. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP105(UK)_1.0_1.0.7.json +0 -0
  155. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP115(EU)_1.0_1.0.16.json +0 -0
  156. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP115(US)_1.0_1.0.17.json +0 -0
  157. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP115(US)_1.0_1.0.21.json +0 -0
  158. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP125(US)_1.0_1.0.6.json +0 -0
  159. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP200(US)_3.0_1.0.3.json +0 -0
  160. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP303(UK)_1.0_1.0.3.json +0 -0
  161. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP303(US)_2.0_1.0.3.json +0 -0
  162. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP400(US)_1.0_1.0.10.json +0 -0
  163. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP400(US)_2.0_1.0.6.json +0 -0
  164. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP401(US)_1.0_1.0.0.json +0 -0
  165. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KP405(US)_1.0_1.0.5.json +0 -0
  166. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KS200M(US)_1.0_1.0.8.json +0 -0
  167. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KS220M(US)_1.0_1.0.4.json +0 -0
  168. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/KS230(US)_1.0_1.0.14.json +0 -0
  169. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/LB110(US)_1.0_1.8.11.json +0 -0
  170. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.1.json +0 -0
  171. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/EP25(US)_2.6_1.0.2.json +0 -0
  172. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.2.3.json +0 -0
  173. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.10.json +0 -0
  174. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/H100(EU)_1.0_1.5.5.json +0 -0
  175. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/KH100(UK)_1.0_1.5.6.json +0 -0
  176. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/KP125M(US)_1.0_1.1.3.json +0 -0
  177. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/KS205(US)_1.0_1.0.2.json +0 -0
  178. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/KS225(US)_1.0_1.0.2.json +0 -0
  179. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.4.json +0 -0
  180. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/KS240(US)_1.0_1.0.5.json +0 -0
  181. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L510B(EU)_3.0_1.0.5.json +0 -0
  182. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.0.5.json +0 -0
  183. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L510E(US)_3.0_1.1.2.json +0 -0
  184. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.0.6.json +0 -0
  185. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.0.json +0 -0
  186. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L530E(EU)_3.0_1.1.6.json +0 -0
  187. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L530E(US)_2.0_1.1.0.json +0 -0
  188. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L900-10(EU)_1.0_1.0.17.json +0 -0
  189. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L900-10(US)_1.0_1.0.11.json +0 -0
  190. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.0.17.json +0 -0
  191. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L900-5(EU)_1.0_1.1.0.json +0 -0
  192. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L920-5(EU)_1.0_1.0.7.json +0 -0
  193. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.0.json +0 -0
  194. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L920-5(US)_1.0_1.1.3.json +0 -0
  195. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/L930-5(US)_1.0_1.1.2.json +0 -0
  196. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P100_1.0.0_1.1.3.json +0 -0
  197. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P100_1.0.0_1.3.7.json +0 -0
  198. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P100_1.0.0_1.4.0.json +0 -0
  199. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.0.7.json +0 -0
  200. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P110(EU)_1.0_1.2.3.json +0 -0
  201. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P110(UK)_1.0_1.3.0.json +0 -0
  202. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P115(EU)_1.0_1.2.3.json +0 -0
  203. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P125M(US)_1.0_1.1.0.json +0 -0
  204. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P135(US)_1.0_1.0.5.json +0 -0
  205. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.13.json +0 -0
  206. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.15.json +0 -0
  207. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/P300(EU)_1.0_1.0.7.json +0 -0
  208. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/S500D(US)_1.0_1.0.5.json +0 -0
  209. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/S505(US)_1.0_1.0.2.json +0 -0
  210. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/S505D(US)_1.0_1.1.0.json +0 -0
  211. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/TP15(US)_1.0_1.0.3.json +0 -0
  212. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/TP25(US)_1.0_1.0.2.json +0 -0
  213. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.4.0.json +0 -0
  214. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/child/KE100(EU)_1.0_2.8.0.json +0 -0
  215. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/child/KE100(UK)_1.0_2.8.0.json +0 -0
  216. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/child/T110(EU)_1.0_1.8.0.json +0 -0
  217. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/child/T300(EU)_1.0_1.7.0.json +0 -0
  218. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/child/T310(EU)_1.0_1.5.0.json +0 -0
  219. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/fixtures/smart/child/T315(EU)_1.0_1.7.0.json +0 -0
  220. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/__init__.py +0 -0
  221. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/features/__init__.py +0 -0
  222. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/features/test_brightness.py +0 -0
  223. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/features/test_colortemp.py +0 -0
  224. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/__init__.py +0 -0
  225. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_autooff.py +0 -0
  226. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_contact.py +0 -0
  227. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_fan.py +0 -0
  228. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_firmware.py +0 -0
  229. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_humidity.py +0 -0
  230. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_temperature.py +0 -0
  231. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_temperaturecontrol.py +0 -0
  232. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/smart/modules/test_waterleak.py +0 -0
  233. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_bulb.py +0 -0
  234. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_cli.py +0 -0
  235. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_device.py +0 -0
  236. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_device_type.py +0 -0
  237. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_deviceconfig.py +0 -0
  238. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_dimmer.py +0 -0
  239. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_discovery.py +0 -0
  240. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_emeter.py +0 -0
  241. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_feature.py +0 -0
  242. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_httpclient.py +0 -0
  243. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_iotdevice.py +0 -0
  244. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_klapprotocol.py +0 -0
  245. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_lightstrip.py +0 -0
  246. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_plug.py +0 -0
  247. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_protocol.py +0 -0
  248. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_readme_examples.py +0 -0
  249. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_strip.py +0 -0
  250. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/tests/test_usage.py +0 -0
  251. {python_kasa-0.7.0.1 → python_kasa-0.7.0.3}/kasa/xortransport.py +0 -0
@@ -1,12 +1,41 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.0.3](https://github.com/python-kasa/python-kasa/tree/0.7.0.3) (2024-07-04)
3
4
 
4
- ## [0.7.0.1](https://github.com/python-kasa/python-kasa/tree/0.7.0.1) (2024-06-25)
5
+ [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.2...0.7.0.3)
6
+
7
+ Critical bugfix for issue #1033 with ks225 and S505D light preset module errors.
8
+ Partially fixes light preset module errors with L920 and L930.
9
+
10
+ **Fixed bugs:**
11
+
12
+ Handle module errors more robustly and add query params to light preset and transition [\#1043](https://github.com/python-kasa/python-kasa/pull/1043)
13
+
14
+ ## [0.7.0.2](https://github.com/python-kasa/python-kasa/tree/0.7.0.2) (2024-07-01)
15
+
16
+ [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0.1...0.7.0.2)
5
17
 
6
18
  This patch release fixes some minor issues found out during testing against all new homeassistant platforms.
7
19
 
20
+ **Fixed bugs:**
21
+
22
+ - Disable multi-request on unknown errors [\#1027](https://github.com/python-kasa/python-kasa/pull/1027) (@sdb9696)
23
+ - Disable multi requests on json decode error during multi-request [\#1025](https://github.com/python-kasa/python-kasa/pull/1025) (@sdb9696)
24
+ - Fix changing brightness when effect is active [\#1019](https://github.com/python-kasa/python-kasa/pull/1019) (@rytilahti)
25
+ - Update light transition module to work with child devices [\#1017](https://github.com/python-kasa/python-kasa/pull/1017) (@sdb9696)
26
+ - Handle unknown error codes gracefully [\#1016](https://github.com/python-kasa/python-kasa/pull/1016) (@rytilahti)
27
+
28
+ **Project maintenance:**
29
+
30
+ - Make parent attribute on device consistent across iot and smart [\#1023](https://github.com/python-kasa/python-kasa/pull/1023) (@sdb9696)
31
+ - Cache SmartErrorCode creation [\#1022](https://github.com/python-kasa/python-kasa/pull/1022) (@bdraco)
32
+
33
+ ## [0.7.0.1](https://github.com/python-kasa/python-kasa/tree/0.7.0.1) (2024-06-25)
34
+
8
35
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.7.0...0.7.0.1)
9
36
 
37
+ This patch release fixes some minor issues found out during testing against all new homeassistant platforms.
38
+
10
39
  **Fixed bugs:**
11
40
 
12
41
  - Disable lighttransition module on child devices [\#1013](https://github.com/python-kasa/python-kasa/pull/1013) (@sdb9696)
@@ -53,25 +82,21 @@ For more information on the changes please checkout our [documentation on the AP
53
82
 
54
83
  **Implemented enhancements:**
55
84
 
85
+ - Radiator support \(KE100\) [\#422](https://github.com/python-kasa/python-kasa/issues/422)
56
86
  - Cleanup cli output [\#1000](https://github.com/python-kasa/python-kasa/pull/1000) (@rytilahti)
57
- - Improve autooff name and unit [\#997](https://github.com/python-kasa/python-kasa/pull/997) (@rytilahti)
58
87
  - Update mode, time, rssi and report\_interval feature names/units [\#995](https://github.com/python-kasa/python-kasa/pull/995) (@sdb9696)
59
- - Add unit\_getter for feature [\#993](https://github.com/python-kasa/python-kasa/pull/993) (@rytilahti)
60
88
  - Add timezone to on\_since attributes [\#978](https://github.com/python-kasa/python-kasa/pull/978) (@sdb9696)
61
89
  - Add type hints to feature set\_value [\#974](https://github.com/python-kasa/python-kasa/pull/974) (@sdb9696)
62
90
  - Handle unknown light effect names and only calculate effect list once [\#973](https://github.com/python-kasa/python-kasa/pull/973) (@sdb9696)
63
91
  - Support smart child modules queries [\#967](https://github.com/python-kasa/python-kasa/pull/967) (@sdb9696)
64
92
  - Do not expose child modules on parent devices [\#964](https://github.com/python-kasa/python-kasa/pull/964) (@sdb9696)
65
93
  - Do not add parent only modules to strip sockets [\#963](https://github.com/python-kasa/python-kasa/pull/963) (@sdb9696)
66
- - Add time sync command [\#951](https://github.com/python-kasa/python-kasa/pull/951) (@rytilahti)
67
94
  - Make device initialisation easier by reducing required imports [\#936](https://github.com/python-kasa/python-kasa/pull/936) (@sdb9696)
68
95
  - Fix set\_state for common light modules [\#929](https://github.com/python-kasa/python-kasa/pull/929) (@sdb9696)
69
96
  - Add state feature for iot devices [\#924](https://github.com/python-kasa/python-kasa/pull/924) (@rytilahti)
70
97
  - Add post update hook to module and use in smart LightEffect [\#921](https://github.com/python-kasa/python-kasa/pull/921) (@sdb9696)
71
98
  - Add LightEffect module for smart light strips [\#918](https://github.com/python-kasa/python-kasa/pull/918) (@sdb9696)
72
- - Add light presets common module to devices. [\#907](https://github.com/python-kasa/python-kasa/pull/907) (@sdb9696)
73
99
  - Improve categorization of features [\#904](https://github.com/python-kasa/python-kasa/pull/904) (@rytilahti)
74
- - Create common interfaces for remaining device types [\#895](https://github.com/python-kasa/python-kasa/pull/895) (@sdb9696)
75
100
  - Make get\_module return typed module [\#892](https://github.com/python-kasa/python-kasa/pull/892) (@sdb9696)
76
101
  - Add LightEffectModule for dynamic light effects on SMART bulbs [\#887](https://github.com/python-kasa/python-kasa/pull/887) (@sdb9696)
77
102
  - Implement choice feature type [\#880](https://github.com/python-kasa/python-kasa/pull/880) (@rytilahti)
@@ -100,6 +125,11 @@ For more information on the changes please checkout our [documentation on the AP
100
125
  - Add --child option to feature command [\#789](https://github.com/python-kasa/python-kasa/pull/789) (@rytilahti)
101
126
  - Add temperature\_unit feature to t315 [\#788](https://github.com/python-kasa/python-kasa/pull/788) (@rytilahti)
102
127
  - Add feature for ambient light sensor [\#787](https://github.com/python-kasa/python-kasa/pull/787) (@shifty35)
128
+ - Improve autooff name and unit [\#997](https://github.com/python-kasa/python-kasa/pull/997) (@rytilahti)
129
+ - Add unit\_getter for feature [\#993](https://github.com/python-kasa/python-kasa/pull/993) (@rytilahti)
130
+ - Add time sync command [\#951](https://github.com/python-kasa/python-kasa/pull/951) (@rytilahti)
131
+ - Add light presets common module to devices. [\#907](https://github.com/python-kasa/python-kasa/pull/907) (@sdb9696)
132
+ - Create common interfaces for remaining device types [\#895](https://github.com/python-kasa/python-kasa/pull/895) (@sdb9696)
103
133
  - Add initial support for H100 and T315 [\#776](https://github.com/python-kasa/python-kasa/pull/776) (@rytilahti)
104
134
  - Generalize smartdevice child support [\#775](https://github.com/python-kasa/python-kasa/pull/775) (@rytilahti)
105
135
  - Raise CLI errors in debug mode [\#771](https://github.com/python-kasa/python-kasa/pull/771) (@sdb9696)
@@ -115,20 +145,24 @@ For more information on the changes please checkout our [documentation on the AP
115
145
 
116
146
  **Fixed bugs:**
117
147
 
148
+ - 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)
149
+ - 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)
150
+ - KS240 gets discovered but will not authenticate [\#749](https://github.com/python-kasa/python-kasa/issues/749)
151
+ - Individual commands do not work on discovered devices [\#71](https://github.com/python-kasa/python-kasa/issues/71)
152
+ - SMART.TAPOHUB does not work with 0.7.0 dev2 [\#958](https://github.com/python-kasa/python-kasa/issues/958)
153
+ - Fix --help on subcommands [\#885](https://github.com/python-kasa/python-kasa/issues/885)
154
+ - "Unclosed client session" Trying to set brightness on Tapo Bulb [\#828](https://github.com/python-kasa/python-kasa/issues/828)
155
+ - Error when trying to discover new Tapo P110 plug [\#818](https://github.com/python-kasa/python-kasa/issues/818)
156
+ - Individual errors cause failing the whole query [\#616](https://github.com/python-kasa/python-kasa/issues/616)
118
157
  - Fix smart led status to report rule status [\#1002](https://github.com/python-kasa/python-kasa/pull/1002) (@sdb9696)
119
158
  - Demote device\_time back to debug [\#1001](https://github.com/python-kasa/python-kasa/pull/1001) (@rytilahti)
120
- - Fix to call update when only --device-family passed to cli [\#987](https://github.com/python-kasa/python-kasa/pull/987) (@sdb9696)
121
- - Disallow non-targeted device commands [\#982](https://github.com/python-kasa/python-kasa/pull/982) (@rytilahti)
122
159
  - Add supported check to light transition module [\#971](https://github.com/python-kasa/python-kasa/pull/971) (@sdb9696)
123
160
  - Fix switching off light effects for iot lights strips [\#961](https://github.com/python-kasa/python-kasa/pull/961) (@sdb9696)
124
161
  - Add state features to iot strip sockets [\#960](https://github.com/python-kasa/python-kasa/pull/960) (@sdb9696)
125
162
  - Ensure http delay logic works during default login attempt [\#959](https://github.com/python-kasa/python-kasa/pull/959) (@sdb9696)
126
163
  - Fix fan speed level when off and derive smart fan module from common fan interface [\#957](https://github.com/python-kasa/python-kasa/pull/957) (@sdb9696)
127
- - Require update in cli for wifi commands [\#956](https://github.com/python-kasa/python-kasa/pull/956) (@rytilahti)
128
- - Do not raise on multi-request errors on child devices [\#949](https://github.com/python-kasa/python-kasa/pull/949) (@rytilahti)
129
164
  - Do not show a zero error code when cli exits from showing help [\#935](https://github.com/python-kasa/python-kasa/pull/935) (@rytilahti)
130
165
  - Initialize autooff features only when data is available [\#933](https://github.com/python-kasa/python-kasa/pull/933) (@rytilahti)
131
- - Fix P100 errors on multi-requests [\#930](https://github.com/python-kasa/python-kasa/pull/930) (@sdb9696)
132
166
  - Fix potential infinite loop if incomplete lists returned [\#920](https://github.com/python-kasa/python-kasa/pull/920) (@sdb9696)
133
167
  - Add 'battery\_percentage' only when it's available [\#906](https://github.com/python-kasa/python-kasa/pull/906) (@rytilahti)
134
168
  - Add missing alarm volume 'normal' [\#899](https://github.com/python-kasa/python-kasa/pull/899) (@rytilahti)
@@ -140,6 +174,11 @@ For more information on the changes please checkout our [documentation on the AP
140
174
  - smartbulb: Limit brightness range to 1-100 [\#829](https://github.com/python-kasa/python-kasa/pull/829) (@rytilahti)
141
175
  - Fix energy module calling get\_current\_power [\#798](https://github.com/python-kasa/python-kasa/pull/798) (@sdb9696)
142
176
  - Fix auto update switch [\#786](https://github.com/python-kasa/python-kasa/pull/786) (@rytilahti)
177
+ - Fix to call update when only --device-family passed to cli [\#987](https://github.com/python-kasa/python-kasa/pull/987) (@sdb9696)
178
+ - Disallow non-targeted device commands [\#982](https://github.com/python-kasa/python-kasa/pull/982) (@rytilahti)
179
+ - Require update in cli for wifi commands [\#956](https://github.com/python-kasa/python-kasa/pull/956) (@rytilahti)
180
+ - Do not raise on multi-request errors on child devices [\#949](https://github.com/python-kasa/python-kasa/pull/949) (@rytilahti)
181
+ - Fix P100 errors on multi-requests [\#930](https://github.com/python-kasa/python-kasa/pull/930) (@sdb9696)
143
182
  - Retry query on 403 after successful handshake [\#785](https://github.com/python-kasa/python-kasa/pull/785) (@sdb9696)
144
183
  - Ensure connections are closed when cli is finished [\#752](https://github.com/python-kasa/python-kasa/pull/752) (@sdb9696)
145
184
  - Fix for P100 on fw 1.1.3 login\_version none [\#751](https://github.com/python-kasa/python-kasa/pull/751) (@sdb9696)
@@ -170,21 +209,22 @@ For more information on the changes please checkout our [documentation on the AP
170
209
 
171
210
  **Documentation updates:**
172
211
 
212
+ - Document device features [\#755](https://github.com/python-kasa/python-kasa/issues/755)
213
+ - Clean up the README [\#979](https://github.com/python-kasa/python-kasa/issues/979)
173
214
  - Cleanup README to use the new cli format [\#999](https://github.com/python-kasa/python-kasa/pull/999) (@rytilahti)
174
215
  - Add 0.7 api changes section to docs [\#996](https://github.com/python-kasa/python-kasa/pull/996) (@sdb9696)
175
- - Update README to be more approachable for new users [\#994](https://github.com/python-kasa/python-kasa/pull/994) (@rytilahti)
176
216
  - Update docs with more howto examples [\#968](https://github.com/python-kasa/python-kasa/pull/968) (@sdb9696)
177
217
  - Update documentation structure and start migrating to markdown [\#934](https://github.com/python-kasa/python-kasa/pull/934) (@sdb9696)
178
218
  - Add tutorial doctest module and enable top level await [\#919](https://github.com/python-kasa/python-kasa/pull/919) (@sdb9696)
179
219
  - Add warning about tapo watchdog [\#902](https://github.com/python-kasa/python-kasa/pull/902) (@rytilahti)
180
220
  - Move contribution instructions into docs [\#901](https://github.com/python-kasa/python-kasa/pull/901) (@rytilahti)
181
221
  - Add rust tapo link to README [\#857](https://github.com/python-kasa/python-kasa/pull/857) (@rytilahti)
222
+ - Update README to be more approachable for new users [\#994](https://github.com/python-kasa/python-kasa/pull/994) (@rytilahti)
182
223
  - Enable shell extra for installing ptpython and rich [\#782](https://github.com/python-kasa/python-kasa/pull/782) (@sdb9696)
183
224
  - Add WallSwitch device type and autogenerate supported devices docs [\#758](https://github.com/python-kasa/python-kasa/pull/758) (@sdb9696)
184
225
 
185
226
  **Project maintenance:**
186
227
 
187
- - Drop python3.8 support [\#992](https://github.com/python-kasa/python-kasa/pull/992) (@rytilahti)
188
228
  - Remove anyio dependency from pyproject.toml [\#990](https://github.com/python-kasa/python-kasa/pull/990) (@sdb9696)
189
229
  - Configure mypy to run in virtual environment and fix resulting issues [\#989](https://github.com/python-kasa/python-kasa/pull/989) (@sdb9696)
190
230
  - Better checking of child modules not supported by parent device [\#966](https://github.com/python-kasa/python-kasa/pull/966) (@sdb9696)
@@ -194,7 +234,6 @@ For more information on the changes please checkout our [documentation on the AP
194
234
  - Deprecate device level light, effect and led attributes [\#916](https://github.com/python-kasa/python-kasa/pull/916) (@sdb9696)
195
235
  - Update cli to use common modules and remove iot specific cli testing [\#913](https://github.com/python-kasa/python-kasa/pull/913) (@sdb9696)
196
236
  - Deprecate is\_something attributes [\#912](https://github.com/python-kasa/python-kasa/pull/912) (@sdb9696)
197
- - Make Light and Fan a common module interface [\#911](https://github.com/python-kasa/python-kasa/pull/911) (@sdb9696)
198
237
  - Rename bulb interface to light and move fan and light interface to interfaces [\#910](https://github.com/python-kasa/python-kasa/pull/910) (@sdb9696)
199
238
  - Make module names consistent and remove redundant module casting [\#909](https://github.com/python-kasa/python-kasa/pull/909) (@sdb9696)
200
239
  - Add child devices from hubs to generated list of supported devices [\#898](https://github.com/python-kasa/python-kasa/pull/898) (@sdb9696)
@@ -229,10 +268,12 @@ For more information on the changes please checkout our [documentation on the AP
229
268
  - Do not fail fast on pypy CI jobs [\#799](https://github.com/python-kasa/python-kasa/pull/799) (@sdb9696)
230
269
  - Update dump\_devinfo to collect child device info [\#796](https://github.com/python-kasa/python-kasa/pull/796) (@sdb9696)
231
270
  - Refactor test framework [\#794](https://github.com/python-kasa/python-kasa/pull/794) (@sdb9696)
271
+ - Refactor devices into subpackages and deprecate old names [\#716](https://github.com/python-kasa/python-kasa/pull/716) (@sdb9696)
272
+ - Drop python3.8 support [\#992](https://github.com/python-kasa/python-kasa/pull/992) (@rytilahti)
273
+ - Make Light and Fan a common module interface [\#911](https://github.com/python-kasa/python-kasa/pull/911) (@sdb9696)
232
274
  - Add missing firmware module import [\#774](https://github.com/python-kasa/python-kasa/pull/774) (@rytilahti)
233
275
  - Fix dump\_devinfo scrubbing for ks240 [\#765](https://github.com/python-kasa/python-kasa/pull/765) (@rytilahti)
234
276
  - Rename and deprecate exception classes [\#739](https://github.com/python-kasa/python-kasa/pull/739) (@sdb9696)
235
- - Refactor devices into subpackages and deprecate old names [\#716](https://github.com/python-kasa/python-kasa/pull/716) (@sdb9696)
236
277
 
237
278
  ## [0.6.2.1](https://github.com/python-kasa/python-kasa/tree/0.6.2.1) (2024-02-02)
238
279
 
@@ -260,6 +301,10 @@ For more information on the changes please checkout our [documentation on the AP
260
301
 
261
302
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.1...0.6.2)
262
303
 
304
+ Release highlights:
305
+ * Support for tapo power strips (P300)
306
+ * Performance improvements and bug fixes
307
+
263
308
  **Implemented enhancements:**
264
309
 
265
310
  - Implement alias set for tapodevice [\#721](https://github.com/python-kasa/python-kasa/pull/721) (@rytilahti)
@@ -296,6 +341,11 @@ For more information on the changes please checkout our [documentation on the AP
296
341
 
297
342
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.0.1...0.6.1)
298
343
 
344
+ Release highlights:
345
+ * Support for tapo wall switches
346
+ * Support for unprovisioned devices
347
+ * Performance and stability improvements
348
+
299
349
  **Implemented enhancements:**
300
350
 
301
351
  - Add support for tapo wall switches \(S500D\) [\#704](https://github.com/python-kasa/python-kasa/pull/704) (@bdraco)
@@ -347,6 +397,8 @@ For more information on the changes please checkout our [documentation on the AP
347
397
 
348
398
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.6.0...0.6.0.1)
349
399
 
400
+ A patch release to improve the protocol handling.
401
+
350
402
  **Fixed bugs:**
351
403
 
352
404
  - Fix httpclient exceptions on read and improve error info [\#655](https://github.com/python-kasa/python-kasa/pull/655) (@sdb9696)
@@ -364,6 +416,19 @@ For more information on the changes please checkout our [documentation on the AP
364
416
 
365
417
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.4...0.6.0)
366
418
 
419
+ 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!
420
+
421
+ This release adds support to a large range of previously unsupported devices, including:
422
+
423
+ * Newer kasa-branded devices, including Matter-enabled devices like KP125M
424
+ * Newer hardware/firmware versions on some models, like EP25, that suddenly changed the used protocol
425
+ * Tapo-branded devices like plugs (P110), light bulbs (KL530), LED strips (L900, L920), and wall switches (KS205, KS225)
426
+ * UK variant of HS110, which was the first device using the new protocol
427
+
428
+ If your device that is not currently listed as supported is working, please consider contributing a test fixture file.
429
+
430
+ Special thanks goes to @SimonWilkinson who created the initial PR for the new communication protocol!
431
+
367
432
  **Breaking changes:**
368
433
 
369
434
  - Add DeviceConfig to allow specifying configuration parameters [\#569](https://github.com/python-kasa/python-kasa/pull/569) (@sdb9696)
@@ -371,6 +436,9 @@ For more information on the changes please checkout our [documentation on the AP
371
436
 
372
437
  **Implemented enhancements:**
373
438
 
439
+ - Support for KS225\(US\) Light Dimmer and KS205\(US\) Light Switch [\#589](https://github.com/python-kasa/python-kasa/issues/589)
440
+ - Set timeout using command line parameters [\#310](https://github.com/python-kasa/python-kasa/issues/310)
441
+ - Implement the new protocol \(HTTP over 80/tcp, 20002/udp for discovery\) [\#115](https://github.com/python-kasa/python-kasa/issues/115)
374
442
  - Get child emeters with CLI [\#623](https://github.com/python-kasa/python-kasa/pull/623) (@Obbay2)
375
443
  - Avoid linear search for emeter realtime and emeter\_today [\#622](https://github.com/python-kasa/python-kasa/pull/622) (@bdraco)
376
444
  - Add update-credentials command [\#620](https://github.com/python-kasa/python-kasa/pull/620) (@rytilahti)
@@ -397,6 +465,7 @@ For more information on the changes please checkout our [documentation on the AP
397
465
 
398
466
  **Fixed bugs:**
399
467
 
468
+ - dump\_devinfo crashes when credentials are not given [\#591](https://github.com/python-kasa/python-kasa/issues/591)
400
469
  - Fix connection indeterminate state on cancellation [\#636](https://github.com/python-kasa/python-kasa/pull/636) (@bdraco)
401
470
  - Check the ct range for color temp support [\#619](https://github.com/python-kasa/python-kasa/pull/619) (@rytilahti)
402
471
  - Fix cli discover bug with None username/password [\#615](https://github.com/python-kasa/python-kasa/pull/615) (@sdb9696)
@@ -405,6 +474,7 @@ For more information on the changes please checkout our [documentation on the AP
405
474
 
406
475
  **Documentation updates:**
407
476
 
477
+ - Update the documentation for 0.6 release [\#600](https://github.com/python-kasa/python-kasa/issues/600)
408
478
  - Update docs for newer devices and DeviceConfig [\#614](https://github.com/python-kasa/python-kasa/pull/614) (@sdb9696)
409
479
  - Update readme with clearer instructions, tapo support [\#571](https://github.com/python-kasa/python-kasa/pull/571) (@rytilahti)
410
480
  - Add some more external links to README [\#541](https://github.com/python-kasa/python-kasa/pull/541) (@rytilahti)
@@ -451,6 +521,15 @@ For more information on the changes please checkout our [documentation on the AP
451
521
 
452
522
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.3...0.5.4)
453
523
 
524
+ The highlights of this maintenance release:
525
+
526
+ * Support to the alternative discovery protocol and foundational work to support other communication protocols, thanks to @sdb9696.
527
+ * Reliability improvements by avoiding overflowing device buffers, thanks to @cobryan05.
528
+ * Optimizations for downstream device accesses, thanks to @bdraco.
529
+ * Support for both pydantic v1 and v2.
530
+
531
+ As always, see the full changelog for details.
532
+
454
533
  **Implemented enhancements:**
455
534
 
456
535
  - Add a connect\_single method to Discover to avoid the need for UDP [\#528](https://github.com/python-kasa/python-kasa/pull/528) (@bdraco)
@@ -489,6 +568,8 @@ For more information on the changes please checkout our [documentation on the AP
489
568
 
490
569
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.2...0.5.3)
491
570
 
571
+ This release adds support for defining the device port and introduces dependency on async-timeout which improves timeout handling.
572
+
492
573
  **Implemented enhancements:**
493
574
 
494
575
  - Make device port configurable [\#471](https://github.com/python-kasa/python-kasa/pull/471) (@karpach)
@@ -506,6 +587,10 @@ For more information on the changes please checkout our [documentation on the AP
506
587
 
507
588
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.1...0.5.2)
508
589
 
590
+ Besides some small improvements, this release:
591
+ * Adds optional dependency for for `orjson` and `kasa-crypt` to speed-up protocol handling by an order of magnitude.
592
+ * Drops Python 3.7 support as it is no longer maintained.
593
+
509
594
  **Breaking changes:**
510
595
 
511
596
  - Drop python 3.7 support [\#455](https://github.com/python-kasa/python-kasa/pull/455) (@rytilahti)
@@ -519,6 +604,9 @@ For more information on the changes please checkout our [documentation on the AP
519
604
 
520
605
  **Fixed bugs:**
521
606
 
607
+ - Request for KP405 Support - Dimmable Plug [\#469](https://github.com/python-kasa/python-kasa/issues/469)
608
+ - 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)
609
+ - Possible firmware issue with KL125 \(1.0.7 Build 211009 Rel.172044\) [\#345](https://github.com/python-kasa/python-kasa/issues/345)
522
610
  - Exclude querying certain modules for KL125\(US\) which cause crashes [\#451](https://github.com/python-kasa/python-kasa/pull/451) (@brianthedavis)
523
611
  - Return result objects for cli discover and implicit 'state' [\#446](https://github.com/python-kasa/python-kasa/pull/446) (@rytilahti)
524
612
  - Allow effect presets seen on light strips [\#440](https://github.com/python-kasa/python-kasa/pull/440) (@rytilahti)
@@ -535,6 +623,13 @@ For more information on the changes please checkout our [documentation on the AP
535
623
 
536
624
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.5.0...0.5.1)
537
625
 
626
+ This minor release contains mostly small UX fine-tuning and documentation improvements alongside with bug fixes:
627
+ * Improved console tool (JSON output, colorized output if rich is installed)
628
+ * Pretty, colorized console output, if `rich` is installed
629
+ * Support for configuring bulb presets
630
+ * Usage data is now reported in the expected format
631
+ * Dependency pinning is relaxed to give downstreams more control
632
+
538
633
  **Breaking changes:**
539
634
 
540
635
  - Implement changing the bulb turn-on behavior [\#381](https://github.com/python-kasa/python-kasa/pull/381) (@rytilahti)
@@ -551,11 +646,16 @@ For more information on the changes please checkout our [documentation on the AP
551
646
 
552
647
  **Fixed bugs:**
553
648
 
649
+ - cli.py usage year and month options do not output data as expected [\#373](https://github.com/python-kasa/python-kasa/issues/373)
650
+ - cli.py usage --year command passes year argument incorrectly [\#371](https://github.com/python-kasa/python-kasa/issues/371)
651
+ - KP303 reporting as device off [\#319](https://github.com/python-kasa/python-kasa/issues/319)
652
+ - HS210 not updating the state correctly [\#193](https://github.com/python-kasa/python-kasa/issues/193)
554
653
  - Fix year emeter for cli by using kwarg for year parameter [\#372](https://github.com/python-kasa/python-kasa/pull/372) (@rytilahti)
555
654
  - Return usage.get\_{monthstat,daystat} in expected format [\#394](https://github.com/python-kasa/python-kasa/pull/394) (@jules43)
556
655
 
557
656
  **Documentation updates:**
558
657
 
658
+ - Update misleading docs about supported devices \(was: add support for EP25 plug\) [\#367](https://github.com/python-kasa/python-kasa/issues/367)
559
659
  - Minor fixes to smartbulb docs [\#431](https://github.com/python-kasa/python-kasa/pull/431) (@rytilahti)
560
660
  - Add a note that transition is not supported by all devices [\#398](https://github.com/python-kasa/python-kasa/pull/398) (@rytilahti)
561
661
  - fix more outdated CLI examples, remove EP40 from bulb list [\#383](https://github.com/python-kasa/python-kasa/pull/383) (@HankB)
@@ -565,6 +665,10 @@ For more information on the changes please checkout our [documentation on the AP
565
665
  - Update README to add missing models and fix a link [\#351](https://github.com/python-kasa/python-kasa/pull/351) (@rytilahti)
566
666
  - Add KP125 test fixture and support note. [\#350](https://github.com/python-kasa/python-kasa/pull/350) (@jalseth)
567
667
 
668
+ **Closed issues:**
669
+
670
+ - 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)
671
+
568
672
  **Merged pull requests:**
569
673
 
570
674
  - Some release preparation janitoring [\#432](https://github.com/python-kasa/python-kasa/pull/432) (@rytilahti)
@@ -587,18 +691,43 @@ For more information on the changes please checkout our [documentation on the AP
587
691
 
588
692
  [Full Changelog](https://github.com/python-kasa/python-kasa/compare/0.4.3...0.5.0)
589
693
 
694
+ 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.
695
+
696
+ 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):
697
+ * Basic system info
698
+ * Emeter
699
+ * 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
700
+ * Usage statistics - similar interface to emeter, but reports on-time statistics instead of energy consumption (new)
701
+ * Countdown (new)
702
+ * Antitheft (new)
703
+ * Schedule (new)
704
+ * Motion - for configuring motion settings on some dimmers (new)
705
+ * Ambientlight - for configuring brightness limits when motion sensor actuates on some dimmers (new)
706
+ * Cloud - information about cloud connectivity (new)
707
+
708
+ For developers, the new functionalities are currently only exposed through the implementation modules accessible through `modules` property.
709
+ Pull requests improving the functionality of modules as well as adding better interfaces to device classes are welcome!
710
+
590
711
  **Breaking changes:**
591
712
 
592
713
  - Drop deprecated, type-specific options in favor of --type [\#336](https://github.com/python-kasa/python-kasa/pull/336) (@rytilahti)
593
714
  - Convert the codebase to be more modular [\#299](https://github.com/python-kasa/python-kasa/pull/299) (@rytilahti)
594
715
 
716
+ **Implemented enhancements:**
717
+
718
+ - Improve HS220 support [\#44](https://github.com/python-kasa/python-kasa/issues/44)
719
+
595
720
  **Fixed bugs:**
596
721
 
722
+ - Skip running discovery on --help on subcommands [\#122](https://github.com/python-kasa/python-kasa/issues/122)
597
723
  - Avoid retrying open\_connection on unrecoverable errors [\#340](https://github.com/python-kasa/python-kasa/pull/340) (@bdraco)
598
724
  - Avoid discovery on --help [\#335](https://github.com/python-kasa/python-kasa/pull/335) (@rytilahti)
599
725
 
600
726
  **Documentation updates:**
601
727
 
728
+ - Trying to poll device every 5 seconds but getting asyncio errors [\#316](https://github.com/python-kasa/python-kasa/issues/316)
729
+ - Docs: Smart Strip - Emeter feature Note [\#257](https://github.com/python-kasa/python-kasa/issues/257)
730
+ - Documentation addition: Smartplug access to internet ntp server pool. [\#129](https://github.com/python-kasa/python-kasa/issues/129)
602
731
  - Export modules & make sphinx happy [\#334](https://github.com/python-kasa/python-kasa/pull/334) (@rytilahti)
603
732
  - Various documentation updates [\#333](https://github.com/python-kasa/python-kasa/pull/333) (@rytilahti)
604
733
 
@@ -612,6 +741,7 @@ For more information on the changes please checkout our [documentation on the AP
612
741
 
613
742
  **Fixed bugs:**
614
743
 
744
+ - Divide by zero when HS300 powerstrip is discovered [\#292](https://github.com/python-kasa/python-kasa/issues/292)
615
745
  - Ensure bulb state is restored when turning back on [\#330](https://github.com/python-kasa/python-kasa/pull/330) (@bdraco)
616
746
 
617
747
  **Merged pull requests:**
@@ -632,6 +762,8 @@ For more information on the changes please checkout our [documentation on the AP
632
762
 
633
763
  **Fixed bugs:**
634
764
 
765
+ - TypeError: \_\_init\_\_\(\) got an unexpected keyword argument 'package\_name' [\#311](https://github.com/python-kasa/python-kasa/issues/311)
766
+ - RuntimeError: Event loop is closed on WSL [\#294](https://github.com/python-kasa/python-kasa/issues/294)
635
767
  - Don't crash on devices not reporting features [\#317](https://github.com/python-kasa/python-kasa/pull/317) (@rytilahti)
636
768
 
637
769
  **Merged pull requests:**
@@ -667,6 +799,8 @@ For more information on the changes please checkout our [documentation on the AP
667
799
 
668
800
  **Fixed bugs:**
669
801
 
802
+ - Discovery on WSL results in OSError: \[Errno 22\] Invalid argument [\#246](https://github.com/python-kasa/python-kasa/issues/246)
803
+ - New firmware for HS103 blocking local access? [\#42](https://github.com/python-kasa/python-kasa/issues/42)
670
804
  - Pin mistune to \<2.0.0 to fix doc builds [\#270](https://github.com/python-kasa/python-kasa/pull/270) (@rytilahti)
671
805
  - Catch exceptions raised on unknown devices during discovery [\#240](https://github.com/python-kasa/python-kasa/pull/240) (@rytilahti)
672
806
 
@@ -686,6 +820,8 @@ For more information on the changes please checkout our [documentation on the AP
686
820
 
687
821
  **Implemented enhancements:**
688
822
 
823
+ - KL430 support [\#67](https://github.com/python-kasa/python-kasa/issues/67)
824
+ - Improve retry logic for discovery, messaging \(was: Handle empty responses\) [\#38](https://github.com/python-kasa/python-kasa/issues/38)
689
825
  - Fix lock being unexpectedly reset on close [\#218](https://github.com/python-kasa/python-kasa/pull/218) (@bdraco)
690
826
  - Avoid calling pformat unless debug logging is enabled [\#217](https://github.com/python-kasa/python-kasa/pull/217) (@bdraco)
691
827
  - Keep connection open and lock to prevent duplicate requests [\#213](https://github.com/python-kasa/python-kasa/pull/213) (@bdraco)
@@ -702,6 +838,10 @@ For more information on the changes please checkout our [documentation on the AP
702
838
 
703
839
  **Fixed bugs:**
704
840
 
841
+ - KL430: Throw error for Device specific information [\#189](https://github.com/python-kasa/python-kasa/issues/189)
842
+ - `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)
843
+ - `Unknown color temperature range` error when attempting to query KL125 bulb state [\#141](https://github.com/python-kasa/python-kasa/issues/141)
844
+ - HS300 Children plugs have emeter [\#64](https://github.com/python-kasa/python-kasa/issues/64)
705
845
  - dump\_devinfo: handle latitude/longitude keys properly [\#175](https://github.com/python-kasa/python-kasa/pull/175) (@rytilahti)
706
846
  - Simplify discovery query, refactor dump-devinfo [\#147](https://github.com/python-kasa/python-kasa/pull/147) (@rytilahti)
707
847
  - Return None instead of raising an exception on missing, valid emeter keys [\#146](https://github.com/python-kasa/python-kasa/pull/146) (@rytilahti)
@@ -710,6 +850,9 @@ For more information on the changes please checkout our [documentation on the AP
710
850
 
711
851
  **Documentation updates:**
712
852
 
853
+ - Discover does not support specifying network interface [\#167](https://github.com/python-kasa/python-kasa/issues/167)
854
+ - Add ability to control individual sockets on KP400 [\#121](https://github.com/python-kasa/python-kasa/issues/121)
855
+ - Improve poetry usage documentation [\#60](https://github.com/python-kasa/python-kasa/issues/60)
713
856
  - Improve cli documentation for bulbs and power strips [\#123](https://github.com/python-kasa/python-kasa/pull/123) (@rytilahti)
714
857
 
715
858
  **Merged pull requests:**
@@ -755,6 +898,10 @@ For more information on the changes please checkout our [documentation on the AP
755
898
 
756
899
  - Add commands to control the wifi settings [\#45](https://github.com/python-kasa/python-kasa/pull/45) (@rytilahti)
757
900
 
901
+ **Fixed bugs:**
902
+
903
+ - HSV cli command not working [\#43](https://github.com/python-kasa/python-kasa/issues/43)
904
+
758
905
  **Merged pull requests:**
759
906
 
760
907
  - 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.1
3
+ Version: 0.7.0.3
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
@@ -140,8 +140,13 @@ class AesTransport(BaseTransport):
140
140
  return un, pw
141
141
 
142
142
  def _handle_response_error_code(self, resp_dict: Any, msg: str) -> None:
143
- error_code = SmartErrorCode(resp_dict.get("error_code")) # type: ignore[arg-type]
144
- if error_code == SmartErrorCode.SUCCESS:
143
+ error_code_raw = resp_dict.get("error_code")
144
+ try:
145
+ error_code = SmartErrorCode.from_int(error_code_raw)
146
+ except ValueError:
147
+ _LOGGER.warning("Received unknown error code: %s", error_code_raw)
148
+ error_code = SmartErrorCode.INTERNAL_UNKNOWN_ERROR
149
+ if error_code is SmartErrorCode.SUCCESS:
145
150
  return
146
151
  msg = f"{msg}: {self._host}: {error_code.name}({error_code.value})"
147
152
  if error_code in SMART_RETRYABLE_ERRORS:
@@ -328,6 +328,11 @@ class Device(ABC):
328
328
  """Send a raw query to the device."""
329
329
  return await self.protocol.query(request=request)
330
330
 
331
+ @property
332
+ def parent(self) -> Device | None:
333
+ """Return the parent on child devices."""
334
+ return self._parent
335
+
331
336
  @property
332
337
  def children(self) -> Sequence[Device]:
333
338
  """Returns the child devices."""
@@ -4,6 +4,7 @@ from __future__ import annotations
4
4
 
5
5
  from asyncio import TimeoutError as _asyncioTimeoutError
6
6
  from enum import IntEnum
7
+ from functools import cache
7
8
  from typing import Any
8
9
 
9
10
 
@@ -63,6 +64,12 @@ class SmartErrorCode(IntEnum):
63
64
  def __str__(self):
64
65
  return f"{self.name}({self.value})"
65
66
 
67
+ @staticmethod
68
+ @cache
69
+ def from_int(value: int) -> SmartErrorCode:
70
+ """Convert an integer to a SmartErrorCode."""
71
+ return SmartErrorCode(value)
72
+
66
73
  SUCCESS = 0
67
74
 
68
75
  # Transport Errors
@@ -119,6 +126,9 @@ class SmartErrorCode(IntEnum):
119
126
  DST_ERROR = -2301
120
127
  DST_SAVE_ERROR = -2302
121
128
 
129
+ # Library internal for unknown error codes
130
+ INTERNAL_UNKNOWN_ERROR = -100_000
131
+
122
132
 
123
133
  SMART_RETRYABLE_ERRORS = [
124
134
  SmartErrorCode.TRANSPORT_NOT_AVAILABLE_ERROR,
@@ -107,6 +107,8 @@ class Feature:
107
107
  Number = Type.Number
108
108
  Choice = Type.Choice
109
109
 
110
+ DEFAULT_MAX = 2**16 # Arbitrary max
111
+
110
112
  class Category(Enum):
111
113
  """Category hint to allow feature grouping."""
112
114
 
@@ -155,7 +157,7 @@ class Feature:
155
157
  #: Minimum value
156
158
  minimum_value: int = 0
157
159
  #: Maximum value
158
- maximum_value: int = 2**16 # Arbitrary max
160
+ maximum_value: int = DEFAULT_MAX
159
161
  #: Attribute containing the name of the range getter property.
160
162
  #: If set, this property will be used to set *minimum_value* and *maximum_value*.
161
163
  range_getter: str | None = None
@@ -307,10 +307,12 @@ class IotStripPlug(IotPlug):
307
307
  The plug inherits (most of) the system information from the parent.
308
308
  """
309
309
 
310
+ _parent: IotStrip
311
+
310
312
  def __init__(self, host: str, parent: IotStrip, child_id: str) -> None:
311
313
  super().__init__(host)
312
314
 
313
- self.parent = parent
315
+ self._parent = parent
314
316
  self.child_id = child_id
315
317
  self._last_update = parent._last_update
316
318
  self._set_sys_info(parent.sys_info)
@@ -380,7 +382,7 @@ class IotStripPlug(IotPlug):
380
382
  self, target: str, cmd: str, arg: dict | None = None, child_ids=None
381
383
  ) -> Any:
382
384
  """Override query helper to include the child_ids."""
383
- return await self.parent._query_helper(
385
+ return await self._parent._query_helper(
384
386
  target, cmd, arg, child_ids=[self.child_id]
385
387
  )
386
388
 
@@ -441,13 +443,15 @@ class IotStripPlug(IotPlug):
441
443
  @requires_update
442
444
  def model(self) -> str:
443
445
  """Return device model for a child socket."""
444
- sys_info = self.parent.sys_info
446
+ sys_info = self._parent.sys_info
445
447
  return f"Socket for {sys_info['model']}"
446
448
 
447
449
  def _get_child_info(self) -> dict:
448
450
  """Return the subdevice information for this device."""
449
- for plug in self.parent.sys_info["children"]:
451
+ for plug in self._parent.sys_info["children"]:
450
452
  if plug["id"] == self.child_id:
451
453
  return plug
452
454
 
453
- raise KasaException(f"Unable to find children {self.child_id}")
455
+ raise KasaException(
456
+ f"Unable to find children {self.child_id}"
457
+ ) # pragma: no cover
@@ -112,6 +112,9 @@ class Module(ABC):
112
112
  "LightTransition"
113
113
  )
114
114
  ReportMode: Final[ModuleName[smart.ReportMode]] = ModuleName("ReportMode")
115
+ SmartLightEffect: Final[ModuleName[smart.SmartLightEffect]] = ModuleName(
116
+ "LightEffect"
117
+ )
115
118
  TemperatureSensor: Final[ModuleName[smart.TemperatureSensor]] = ModuleName(
116
119
  "TemperatureSensor"
117
120
  )
@@ -2,8 +2,33 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from abc import ABC, abstractmethod
5
6
  from typing import cast
6
7
 
8
+ from ..interfaces.lighteffect import LightEffect as LightEffectInterface
9
+
10
+
11
+ class SmartLightEffect(LightEffectInterface, ABC):
12
+ """Abstract interface for smart light effects.
13
+
14
+ This interface extends lighteffect interface to add brightness controls.
15
+ """
16
+
17
+ @abstractmethod
18
+ async def set_brightness(self, brightness: int, *, transition: int | None = None):
19
+ """Set effect brightness."""
20
+
21
+ @property
22
+ @abstractmethod
23
+ def brightness(self) -> int:
24
+ """Return effect brightness."""
25
+
26
+ @property
27
+ @abstractmethod
28
+ def is_active(self) -> bool:
29
+ """Return True if effect is active."""
30
+
31
+
7
32
  EFFECT_AURORA = {
8
33
  "custom": 0,
9
34
  "id": "TapoStrip_1MClvV18i15Jq3bvJVf0eP",
@@ -1,5 +1,6 @@
1
1
  """Modules for SMART devices."""
2
2
 
3
+ from ..effects import SmartLightEffect
3
4
  from .alarm import Alarm
4
5
  from .autooff import AutoOff
5
6
  from .batterysensor import BatterySensor
@@ -54,4 +55,5 @@ __all__ = [
54
55
  "WaterleakSensor",
55
56
  "ContactSensor",
56
57
  "FrostProtection",
58
+ "SmartLightEffect",
57
59
  ]