PySwitchbot 0.55.0__tar.gz → 0.55.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/PKG-INFO +1 -1
  2. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/PySwitchbot.egg-info/PKG-INFO +1 -1
  3. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/setup.py +1 -1
  4. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/__init__.py +2 -0
  5. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/lock.py +1 -1
  6. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/relay_switch.py +1 -1
  7. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/LICENSE +0 -0
  8. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/MANIFEST.in +0 -0
  9. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/PySwitchbot.egg-info/SOURCES.txt +0 -0
  10. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/PySwitchbot.egg-info/dependency_links.txt +0 -0
  11. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/PySwitchbot.egg-info/requires.txt +0 -0
  12. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/PySwitchbot.egg-info/top_level.txt +0 -0
  13. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/README.md +0 -0
  14. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/setup.cfg +0 -0
  15. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parser.py +0 -0
  16. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/__init__.py +0 -0
  17. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/blind_tilt.py +0 -0
  18. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/bot.py +0 -0
  19. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/bulb.py +0 -0
  20. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/ceiling_light.py +0 -0
  21. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/contact.py +0 -0
  22. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/curtain.py +0 -0
  23. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/hub2.py +0 -0
  24. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/humidifier.py +0 -0
  25. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/keypad.py +0 -0
  26. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/leak.py +0 -0
  27. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/light_strip.py +0 -0
  28. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/lock.py +0 -0
  29. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/meter.py +0 -0
  30. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/motion.py +0 -0
  31. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/plug.py +0 -0
  32. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/adv_parsers/relay_switch.py +0 -0
  33. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/api_config.py +0 -0
  34. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/const.py +0 -0
  35. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/__init__.py +0 -0
  36. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/base_cover.py +0 -0
  37. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/base_light.py +0 -0
  38. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/blind_tilt.py +0 -0
  39. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/bot.py +0 -0
  40. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/bulb.py +0 -0
  41. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/ceiling_light.py +0 -0
  42. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/contact.py +0 -0
  43. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/curtain.py +0 -0
  44. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/device.py +0 -0
  45. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/humidifier.py +0 -0
  46. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/keypad.py +0 -0
  47. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/light_strip.py +0 -0
  48. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/meter.py +0 -0
  49. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/motion.py +0 -0
  50. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/devices/plug.py +0 -0
  51. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/discovery.py +0 -0
  52. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/enum.py +0 -0
  53. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/switchbot/models.py +0 -0
  54. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/tests/test_adv_parser.py +0 -0
  55. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/tests/test_base_cover.py +0 -0
  56. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/tests/test_blind_tilt.py +0 -0
  57. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/tests/test_curtain.py +0 -0
  58. {pyswitchbot-0.55.0 → pyswitchbot-0.55.1}/tests/test_relay_switch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySwitchbot
3
- Version: 0.55.0
3
+ Version: 0.55.1
4
4
  Summary: A library to communicate with Switchbot
5
5
  Home-page: https://github.com/sblibs/pySwitchbot/
6
6
  Author: Daniel Hjelseth Hoyer
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PySwitchbot
3
- Version: 0.55.0
3
+ Version: 0.55.1
4
4
  Summary: A library to communicate with Switchbot
5
5
  Home-page: https://github.com/sblibs/pySwitchbot/
6
6
  Author: Daniel Hjelseth Hoyer
@@ -15,7 +15,7 @@ setup(
15
15
  "cryptography>=39.0.0",
16
16
  "pyOpenSSL>=23.0.0",
17
17
  ],
18
- version="0.55.0",
18
+ version="0.55.1",
19
19
  description="A library to communicate with Switchbot",
20
20
  long_description=long_description,
21
21
  long_description_content_type="text/markdown",
@@ -16,6 +16,7 @@ from .const import (
16
16
  SwitchbotAuthenticationError,
17
17
  SwitchbotModel,
18
18
  )
19
+ from .devices.device import SwitchbotEncryptedDevice
19
20
  from .devices.base_light import SwitchbotBaseLight
20
21
  from .devices.blind_tilt import SwitchbotBlindTilt
21
22
  from .devices.bot import Switchbot
@@ -41,6 +42,7 @@ __all__ = [
41
42
  "SwitchbotAccountConnectionError",
42
43
  "SwitchbotApiError",
43
44
  "SwitchbotAuthenticationError",
45
+ "SwitchbotEncryptedDevice",
44
46
  "ColorMode",
45
47
  "LockStatus",
46
48
  "SwitchbotBaseLight",
@@ -71,7 +71,7 @@ class SwitchbotLock(SwitchbotEncryptedDevice):
71
71
  model: SwitchbotModel = SwitchbotModel.LOCK,
72
72
  **kwargs: Any,
73
73
  ) -> bool:
74
- return super().verify_encryption_key(
74
+ return await super().verify_encryption_key(
75
75
  device, key_id, encryption_key, model, **kwargs
76
76
  )
77
77
 
@@ -44,7 +44,7 @@ class SwitchbotRelaySwitch(SwitchbotEncryptedDevice):
44
44
  model: SwitchbotModel = SwitchbotModel.RELAY_SWITCH_1PM,
45
45
  **kwargs: Any,
46
46
  ) -> bool:
47
- return super().verify_encryption_key(
47
+ return await super().verify_encryption_key(
48
48
  device, key_id, encryption_key, model, **kwargs
49
49
  )
50
50
 
File without changes
File without changes
File without changes
File without changes