switchbot-api 2.0.0__tar.gz → 2.1.0__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.0.0 → switchbot_api-2.1.0}/PKG-INFO +1 -1
- {switchbot_api-2.0.0 → switchbot_api-2.1.0}/pyproject.toml +2 -2
- {switchbot_api-2.0.0 → switchbot_api-2.1.0}/switchbot_api/__init__.py +8 -0
- {switchbot_api-2.0.0 → switchbot_api-2.1.0}/LICENSE +0 -0
- {switchbot_api-2.0.0 → switchbot_api-2.1.0}/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "switchbot_api"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.1.0"
|
|
4
4
|
description = "An asynchronous library to use Switchbot API"
|
|
5
5
|
authors = ["Ravaka Razafimanantsoa <contact@ravaka.dev>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -16,7 +16,7 @@ aiohttp = "^3.8.4"
|
|
|
16
16
|
[tool.poetry.group.dev.dependencies]
|
|
17
17
|
pytest = "^7.2.2"
|
|
18
18
|
flake8 = "^6.0.0"
|
|
19
|
-
black = "
|
|
19
|
+
black = ">=23.1,<25.0"
|
|
20
20
|
coverage = "^7.2.1"
|
|
21
21
|
parameterized = "^0.8.1"
|
|
22
22
|
isort = "^5.12.0"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Tools to query the SwitchBot API."""
|
|
2
|
+
|
|
2
3
|
import base64
|
|
3
4
|
from dataclasses import dataclass
|
|
4
5
|
from enum import Enum
|
|
@@ -146,6 +147,13 @@ class LightCommands(Commands):
|
|
|
146
147
|
BRIGHTNESS_DOWN = "brightnessDown"
|
|
147
148
|
|
|
148
149
|
|
|
150
|
+
class LockCommands(Commands):
|
|
151
|
+
"""Lock commands"""
|
|
152
|
+
|
|
153
|
+
LOCK = "lock"
|
|
154
|
+
UNLOCK = "unlock"
|
|
155
|
+
|
|
156
|
+
|
|
149
157
|
class CeilingLightCommands(Commands):
|
|
150
158
|
"""Ceiling light commands."""
|
|
151
159
|
|
|
File without changes
|
|
File without changes
|