blueair-api 1.11.0__tar.gz → 1.12.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.
- {blueair_api-1.11.0 → blueair_api-1.12.0}/PKG-INFO +1 -1
- {blueair_api-1.11.0 → blueair_api-1.12.0}/pyproject.toml +1 -1
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/__init__.py +1 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/device.py +1 -1
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/device_aws.py +9 -0
- blueair_api-1.12.0/src/blueair_api/model_enum.py +7 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api.egg-info/PKG-INFO +1 -1
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api.egg-info/SOURCES.txt +1 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/LICENSE +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/README.md +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/setup.cfg +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/callbacks.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/const.py +8 -8
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/errors.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/http_aws_blueair.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/http_blueair.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/stub.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/util.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/util_bootstrap.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api/util_http.py +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api.egg-info/dependency_links.txt +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api.egg-info/requires.txt +0 -0
- {blueair_api-1.11.0 → blueair_api-1.12.0}/src/blueair_api.egg-info/top_level.txt +0 -0
@@ -37,7 +37,7 @@ class Device(CallbacksMixin):
|
|
37
37
|
self.uuid = uuid
|
38
38
|
self.name = name
|
39
39
|
self.mac = mac
|
40
|
-
_LOGGER.debug(f"creating blueair device: {self
|
40
|
+
_LOGGER.debug(f"creating blueair device: {self}")
|
41
41
|
|
42
42
|
async def init(self):
|
43
43
|
info = await self.api.get_info(self.uuid)
|
@@ -2,6 +2,7 @@ import logging
|
|
2
2
|
|
3
3
|
from .callbacks import CallbacksMixin
|
4
4
|
from .http_aws_blueair import HttpAwsBlueair
|
5
|
+
from .model_enum import ModelEnum
|
5
6
|
from .util import convert_api_array_to_dict, safely_get_json_value
|
6
7
|
|
7
8
|
_LOGGER = logging.getLogger(__name__)
|
@@ -132,6 +133,14 @@ class DeviceAws(CallbacksMixin):
|
|
132
133
|
await self.api.set_device_info(self.uuid, "wickdrys", "vb", value)
|
133
134
|
self.publish_updates()
|
134
135
|
|
136
|
+
@property
|
137
|
+
def model(self) -> ModelEnum:
|
138
|
+
if self.sku == "111633":
|
139
|
+
return ModelEnum.HUMIDIFIER_I35
|
140
|
+
if self.sku == "105826":
|
141
|
+
return ModelEnum.PROTECT_7470I
|
142
|
+
return ModelEnum.UNKNOWN
|
143
|
+
|
135
144
|
def __repr__(self):
|
136
145
|
return {
|
137
146
|
"uuid": self.uuid,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,7 +1,6 @@
|
|
1
1
|
from collections.abc import Mapping
|
2
2
|
from typing_extensions import TypedDict
|
3
3
|
|
4
|
-
|
5
4
|
SENSITIVE_FIELD_NAMES = [
|
6
5
|
"username",
|
7
6
|
"password",
|
@@ -10,13 +9,6 @@ SENSITIVE_FIELD_NAMES = [
|
|
10
9
|
# The BlueAir API uses a fixed API key.
|
11
10
|
API_KEY = "eyJhbGciOiJIUzI1NiJ9.eyJncmFudGVlIjoiYmx1ZWFpciIsImlhdCI6MTQ1MzEyNTYzMiwidmFsaWRpdHkiOi0xLCJqdGkiOiJkNmY3OGE0Yi1iMWNkLTRkZDgtOTA2Yi1kN2JkNzM0MTQ2NzQiLCJwZXJtaXNzaW9ucyI6WyJhbGwiXSwicXVvdGEiOi0xLCJyYXRlTGltaXQiOi0xfQ.CJsfWVzFKKDDA6rWdh-hjVVVE9S3d6Hu9BzXG9htWFw" # noqa: E501
|
12
11
|
|
13
|
-
|
14
|
-
class MeasurementBundle(TypedDict):
|
15
|
-
sensors: list[str]
|
16
|
-
datapoints: list[list[int | float]]
|
17
|
-
|
18
|
-
MeasurementList = list[Mapping[str, int | float]]
|
19
|
-
|
20
12
|
AWS_APIKEYS = {
|
21
13
|
"us": {
|
22
14
|
"gigyaRegion": "us1",
|
@@ -31,3 +23,11 @@ AWS_APIKEYS = {
|
|
31
23
|
"apiKey": "3_qRseYzrUJl1VyxvSJANalu_kNgQ83swB1B9uzgms58--5w1ClVNmrFdsDnWVQQCl",
|
32
24
|
},
|
33
25
|
}
|
26
|
+
|
27
|
+
|
28
|
+
class MeasurementBundle(TypedDict):
|
29
|
+
sensors: list[str]
|
30
|
+
datapoints: list[list[int | float]]
|
31
|
+
|
32
|
+
|
33
|
+
MeasurementList = list[Mapping[str, int | float]]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|