switchbot-api 2.11.0__tar.gz → 2.11.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.11.0 → switchbot_api-2.11.1}/PKG-INFO +2 -1
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/pyproject.toml +2 -2
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/switchbot_api/__init__.py +1 -1
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/LICENSE +0 -0
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/README.md +0 -0
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/switchbot_api/commands.py +0 -0
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/switchbot_api/exceptions.py +0 -0
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/switchbot_api/models.py +0 -0
- {switchbot_api-2.11.0 → switchbot_api-2.11.1}/switchbot_api/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: switchbot_api
|
|
3
|
-
Version: 2.11.
|
|
3
|
+
Version: 2.11.1
|
|
4
4
|
Summary: An asynchronous library to use Switchbot API
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
17
17
|
Requires-Dist: aiohttp (>=3.0.0)
|
|
18
|
+
Requires-Dist: pycryptodome (>=3.23.0,<4.0.0)
|
|
18
19
|
Project-URL: Repository, https://github.com/SeraphicCorp/py-switchbot-api
|
|
19
20
|
Description-Content-Type: text/markdown
|
|
20
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "switchbot_api"
|
|
3
|
-
version = "2.11.
|
|
3
|
+
version = "2.11.1"
|
|
4
4
|
description = "An asynchronous library to use Switchbot API"
|
|
5
5
|
authors = ["Ravaka Razafimanantsoa <contact@ravaka.dev>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -11,6 +11,7 @@ repository = "https://github.com/SeraphicCorp/py-switchbot-api"
|
|
|
11
11
|
[tool.poetry.dependencies]
|
|
12
12
|
python = "^3.10"
|
|
13
13
|
aiohttp = ">=3.0.0"
|
|
14
|
+
pycryptodome = "^3.23.0"
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -28,7 +29,6 @@ codespell = "^2.3.0"
|
|
|
28
29
|
pre-commit = "^4.0.1"
|
|
29
30
|
pre-commit-hooks = "^5.0.0"
|
|
30
31
|
yamllint = "^1.35.1"
|
|
31
|
-
pycryptodome = "^3.23.0"
|
|
32
32
|
|
|
33
33
|
[tool.mypy]
|
|
34
34
|
# Specify the target platform details in config, so your developers are
|
|
@@ -262,7 +262,7 @@ class SwitchBotAPI:
|
|
|
262
262
|
"""No status for IR devices."""
|
|
263
263
|
response = await self._request(METH_GET, f"devices/{device_id}/status")
|
|
264
264
|
|
|
265
|
-
device_type = response
|
|
265
|
+
device_type = response.get("deviceType")
|
|
266
266
|
if device_type and device_type in KeyPadCommands.get_supported_devices():
|
|
267
267
|
return await self.get_device(device_id)
|
|
268
268
|
return response
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|