switchbot-api 2.3.0__tar.gz → 2.3.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.
- {switchbot_api-2.3.0 → switchbot_api-2.3.1}/PKG-INFO +1 -2
- {switchbot_api-2.3.0 → switchbot_api-2.3.1}/pyproject.toml +1 -1
- {switchbot_api-2.3.0 → switchbot_api-2.3.1}/switchbot_api/__init__.py +2 -1
- {switchbot_api-2.3.0 → switchbot_api-2.3.1}/LICENSE +0 -0
- {switchbot_api-2.3.0 → switchbot_api-2.3.1}/README.md +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: switchbot_api
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: An asynchronous library to use Switchbot API
|
|
5
|
-
Home-page: https://github.com/SeraphicCorp/py-switchbot-api
|
|
6
5
|
License: MIT
|
|
7
6
|
Author: Ravaka Razafimanantsoa
|
|
8
7
|
Author-email: contact@ravaka.dev
|
|
@@ -220,6 +220,7 @@ class SwitchBotAPI:
|
|
|
220
220
|
body = await response.json()
|
|
221
221
|
|
|
222
222
|
if response.status >= 400:
|
|
223
|
+
_LOGGER.error("Error %d: %s", response.status, body)
|
|
223
224
|
raise CannotConnect()
|
|
224
225
|
|
|
225
226
|
match body.get("statusCode"):
|
|
@@ -232,7 +233,7 @@ class SwitchBotAPI:
|
|
|
232
233
|
# online too.
|
|
233
234
|
raise DeviceOffline()
|
|
234
235
|
case _:
|
|
235
|
-
_LOGGER.error("Error %
|
|
236
|
+
_LOGGER.error("Error %d: %s", response.status, body)
|
|
236
237
|
raise CannotConnect()
|
|
237
238
|
|
|
238
239
|
async def list_devices(self) -> list[Device | Remote]:
|
|
File without changes
|
|
File without changes
|