switchbot-api 2.5.0__tar.gz → 2.6.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.5.0 → switchbot_api-2.6.0}/PKG-INFO +21 -4
- {switchbot_api-2.5.0 → switchbot_api-2.6.0}/README.md +20 -3
- {switchbot_api-2.5.0 → switchbot_api-2.6.0}/pyproject.toml +1 -1
- {switchbot_api-2.5.0 → switchbot_api-2.6.0}/switchbot_api/__init__.py +4 -0
- {switchbot_api-2.5.0 → switchbot_api-2.6.0}/LICENSE +0 -0
- {switchbot_api-2.5.0 → switchbot_api-2.6.0}/switchbot_api/exceptions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: switchbot_api
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.0
|
|
4
4
|
Summary: An asynchronous library to use Switchbot API
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Ravaka Razafimanantsoa
|
|
@@ -36,13 +36,30 @@ await client.send_command('some-id', {COMMAND})
|
|
|
36
36
|
### Install
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
|
|
39
|
+
make install
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Lint
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
make format
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Test
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
make test
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### build wheel
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
make build
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Clean
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
make clean
|
|
47
64
|
```
|
|
48
65
|
|
|
@@ -18,12 +18,29 @@ await client.send_command('some-id', {COMMAND})
|
|
|
18
18
|
### Install
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
|
|
21
|
+
make install
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Lint
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
make format
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Test
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
make test
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### build wheel
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
make build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Clean
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
make clean
|
|
29
46
|
```
|
|
@@ -36,6 +36,8 @@ class Device:
|
|
|
36
36
|
device_name: str
|
|
37
37
|
device_type: str
|
|
38
38
|
hub_device_id: str
|
|
39
|
+
group: bool
|
|
40
|
+
master: bool | None
|
|
39
41
|
|
|
40
42
|
def __init__(self, **kwargs: Any) -> None:
|
|
41
43
|
"""Initialize."""
|
|
@@ -43,6 +45,8 @@ class Device:
|
|
|
43
45
|
self.device_name = kwargs["deviceName"]
|
|
44
46
|
self.device_type = kwargs.get("deviceType", "-")
|
|
45
47
|
self.hub_device_id = kwargs["hubDeviceId"]
|
|
48
|
+
self.group = kwargs.get("group", False)
|
|
49
|
+
self.master = kwargs.get("master")
|
|
46
50
|
|
|
47
51
|
|
|
48
52
|
@dataclass
|
|
File without changes
|
|
File without changes
|