switchbot-api 2.2.0__tar.gz → 2.2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: switchbot_api
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: An asynchronous library to use Switchbot API
5
5
  Home-page: https://github.com/SeraphicCorp/py-switchbot-api
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "switchbot_api"
3
- version = "2.2.0"
3
+ version = "2.2.1"
4
4
  description = "An asynchronous library to use Switchbot API"
5
5
  authors = ["Ravaka Razafimanantsoa <contact@ravaka.dev>"]
6
6
  license = "MIT"
@@ -285,7 +285,7 @@ class SwitchBotAPI:
285
285
  """
286
286
  json = {
287
287
  "commandType": command_type,
288
- "command": command if isinstance(command, Commands) else command,
288
+ "command": command.value if isinstance(command, Commands) else command,
289
289
  "parameter": parameters,
290
290
  }
291
291
  await self._request(f"devices/{device_id}/commands", callback="post", json=json)
File without changes
File without changes