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.
@@ -1,8 +1,7 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: switchbot_api
3
- Version: 2.3.0
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "switchbot_api"
3
- version = "2.3.0"
3
+ version = "2.3.1"
4
4
  description = "An asynchronous library to use Switchbot API"
5
5
  authors = ["Ravaka Razafimanantsoa <contact@ravaka.dev>"]
6
6
  license = "MIT"
@@ -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 %s: %s", response.status, body)
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