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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: switchbot_api
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: An asynchronous library to use Switchbot API
5
5
  Home-page: https://github.com/SeraphicCorp/py-switchbot-api
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "switchbot_api"
3
- version = "2.0.0"
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 = "^23.1.0"
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