switchbot-api 2.2.0__py3-none-any.whl → 2.2.1__py3-none-any.whl
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.
- switchbot_api/__init__.py +1 -1
- {switchbot_api-2.2.0.dist-info → switchbot_api-2.2.1.dist-info}/METADATA +1 -1
- switchbot_api-2.2.1.dist-info/RECORD +5 -0
- switchbot_api-2.2.0.dist-info/RECORD +0 -5
- {switchbot_api-2.2.0.dist-info → switchbot_api-2.2.1.dist-info}/LICENSE +0 -0
- {switchbot_api-2.2.0.dist-info → switchbot_api-2.2.1.dist-info}/WHEEL +0 -0
switchbot_api/__init__.py
CHANGED
|
@@ -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)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
switchbot_api/__init__.py,sha256=3hkEPI_4R0oZu_9CUncOlBw20m0dmVIDiSOCZCKYvXU,7902
|
|
2
|
+
switchbot_api-2.2.1.dist-info/LICENSE,sha256=TkgS2kvL9OHFfVrB8jNqEz1_kkR4j0s7fsOgXkluQqo,1070
|
|
3
|
+
switchbot_api-2.2.1.dist-info/METADATA,sha256=Zh0czUKKtBDoe5VLsbKBySwjkMimsWYnOq9PuaeJphM,1149
|
|
4
|
+
switchbot_api-2.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
5
|
+
switchbot_api-2.2.1.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
switchbot_api/__init__.py,sha256=LON3tU3BEq3myJPnMyZUUeoeXeMnh0set7veRiZFCh4,7896
|
|
2
|
-
switchbot_api-2.2.0.dist-info/LICENSE,sha256=TkgS2kvL9OHFfVrB8jNqEz1_kkR4j0s7fsOgXkluQqo,1070
|
|
3
|
-
switchbot_api-2.2.0.dist-info/METADATA,sha256=rOKB9PBI0ilwm41keqMoAfvK1g1JMMzKV4JI4mTUV1E,1149
|
|
4
|
-
switchbot_api-2.2.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
5
|
-
switchbot_api-2.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|