PySwitchbot 0.62.1__tar.gz → 0.62.2__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 (82) hide show
  1. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/PKG-INFO +1 -1
  2. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/PySwitchbot.egg-info/PKG-INFO +1 -1
  3. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/setup.py +1 -1
  4. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/const/air_purifier.py +2 -2
  5. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/air_purifier.py +2 -2
  6. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_adv_parser.py +1 -1
  7. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_air_purifier.py +2 -2
  8. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/LICENSE +0 -0
  9. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/MANIFEST.in +0 -0
  10. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/PySwitchbot.egg-info/SOURCES.txt +0 -0
  11. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/PySwitchbot.egg-info/dependency_links.txt +0 -0
  12. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/PySwitchbot.egg-info/requires.txt +0 -0
  13. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/PySwitchbot.egg-info/top_level.txt +0 -0
  14. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/README.md +0 -0
  15. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/pyproject.toml +0 -0
  16. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/setup.cfg +0 -0
  17. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/__init__.py +0 -0
  18. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parser.py +0 -0
  19. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/__init__.py +0 -0
  20. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/air_purifier.py +0 -0
  21. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/blind_tilt.py +0 -0
  22. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/bot.py +0 -0
  23. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/bulb.py +0 -0
  24. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/ceiling_light.py +0 -0
  25. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/contact.py +0 -0
  26. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/curtain.py +0 -0
  27. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/fan.py +0 -0
  28. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/hub2.py +0 -0
  29. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/hubmini_matter.py +0 -0
  30. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/humidifier.py +0 -0
  31. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/keypad.py +0 -0
  32. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/leak.py +0 -0
  33. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/light_strip.py +0 -0
  34. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/lock.py +0 -0
  35. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/meter.py +0 -0
  36. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/motion.py +0 -0
  37. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/plug.py +0 -0
  38. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/relay_switch.py +0 -0
  39. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/remote.py +0 -0
  40. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/roller_shade.py +0 -0
  41. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/adv_parsers/vacuum.py +0 -0
  42. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/api_config.py +0 -0
  43. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/const/__init__.py +0 -0
  44. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/const/evaporative_humidifier.py +0 -0
  45. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/const/fan.py +0 -0
  46. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/const/hub2.py +0 -0
  47. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/const/lock.py +0 -0
  48. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/__init__.py +0 -0
  49. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/base_cover.py +0 -0
  50. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/base_light.py +0 -0
  51. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/blind_tilt.py +0 -0
  52. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/bot.py +0 -0
  53. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/bulb.py +0 -0
  54. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/ceiling_light.py +0 -0
  55. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/contact.py +0 -0
  56. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/curtain.py +0 -0
  57. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/device.py +0 -0
  58. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/evaporative_humidifier.py +0 -0
  59. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/fan.py +0 -0
  60. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/humidifier.py +0 -0
  61. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/keypad.py +0 -0
  62. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/light_strip.py +0 -0
  63. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/lock.py +0 -0
  64. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/meter.py +0 -0
  65. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/motion.py +0 -0
  66. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/plug.py +0 -0
  67. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/relay_switch.py +0 -0
  68. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/roller_shade.py +0 -0
  69. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/devices/vacuum.py +0 -0
  70. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/discovery.py +0 -0
  71. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/enum.py +0 -0
  72. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/helpers.py +0 -0
  73. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/switchbot/models.py +0 -0
  74. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_base_cover.py +0 -0
  75. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_blind_tilt.py +0 -0
  76. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_curtain.py +0 -0
  77. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_evaporative_humidifier.py +0 -0
  78. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_fan.py +0 -0
  79. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_hub2.py +0 -0
  80. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_relay_switch.py +0 -0
  81. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_roller_shade.py +0 -0
  82. {pyswitchbot-0.62.1 → pyswitchbot-0.62.2}/tests/test_vacuum.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PySwitchbot
3
- Version: 0.62.1
3
+ Version: 0.62.2
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.4
2
2
  Name: PySwitchbot
3
- Version: 0.62.1
3
+ Version: 0.62.2
4
4
  Summary: A library to communicate with Switchbot
5
5
  Home-page: https://github.com/sblibs/pySwitchbot/
6
6
  Author: Daniel Hjelseth Hoyer
@@ -20,7 +20,7 @@ setup(
20
20
  "cryptography>=39.0.0",
21
21
  "pyOpenSSL>=23.0.0",
22
22
  ],
23
- version="0.62.1",
23
+ version="0.62.2",
24
24
  description="A library to communicate with Switchbot",
25
25
  long_description=long_description,
26
26
  long_description_content_type="text/markdown",
@@ -8,8 +8,8 @@ class AirPurifierMode(Enum):
8
8
  LEVEL_2 = 2
9
9
  LEVEL_3 = 3
10
10
  AUTO = 4
11
- PET = 5
12
- SLEEP = 6
11
+ SLEEP = 5
12
+ PET = 6
13
13
 
14
14
  @classmethod
15
15
  def get_modes(cls) -> list[str]:
@@ -28,8 +28,8 @@ COMMAND_SET_MODE = {
28
28
  AirPurifierMode.LEVEL_2.name.lower(): f"{COMMAND_HEAD}01010132",
29
29
  AirPurifierMode.LEVEL_3.name.lower(): f"{COMMAND_HEAD}01010164",
30
30
  AirPurifierMode.AUTO.name.lower(): f"{COMMAND_HEAD}01010200",
31
- AirPurifierMode.PET.name.lower(): f"{COMMAND_HEAD}01010300",
32
- AirPurifierMode.SLEEP.name.lower(): f"{COMMAND_HEAD}01010400",
31
+ AirPurifierMode.SLEEP.name.lower(): f"{COMMAND_HEAD}01010300",
32
+ AirPurifierMode.PET.name.lower(): f"{COMMAND_HEAD}01010400",
33
33
  }
34
34
  DEVICE_GET_BASIC_SETTINGS_KEY = "570f4d81"
35
35
 
@@ -2692,7 +2692,7 @@ def test_s10_with_empty_data() -> None:
2692
2692
  b"+\x00\x00\x15\x04\x00",
2693
2693
  {
2694
2694
  "isOn": True,
2695
- "mode": "pet",
2695
+ "mode": "sleep",
2696
2696
  "isAqiValid": False,
2697
2697
  "child_lock": False,
2698
2698
  "speed": 100,
@@ -171,7 +171,7 @@ async def test__get_basic_info(rawAdvData, model, response, expected):
171
171
  bytearray(
172
172
  b"\x01\xa8\xec\x8c\x08\x00\xb2\x01\x96\x00\x00\x00\xf0\x00\x00\x17"
173
173
  ),
174
- [True, 2, "sleep", True, False, "excellent", 50, 240, 2.3],
174
+ [True, 2, "pet", True, False, "excellent", 50, 240, 2.3],
175
175
  ),
176
176
  ],
177
177
  )
@@ -226,6 +226,6 @@ def test_get_modes():
226
226
  "level_2",
227
227
  "level_3",
228
228
  "auto",
229
- "pet",
230
229
  "sleep",
230
+ "pet",
231
231
  ]
File without changes
File without changes
File without changes
File without changes