blueair-api 1.26.0__tar.gz → 1.26.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.
- {blueair_api-1.26.0 → blueair_api-1.26.1}/PKG-INFO +1 -1
- {blueair_api-1.26.0 → blueair_api-1.26.1}/pyproject.toml +1 -1
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/intermediate_representation_aws.py +1 -1
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api.egg-info/PKG-INFO +1 -1
- {blueair_api-1.26.0 → blueair_api-1.26.1}/tests/test_device_aws.py +46 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/LICENSE +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/README.md +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/setup.cfg +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/__init__.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/callbacks.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/const.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/device.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/device_aws.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/errors.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/http_aws_blueair.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/http_blueair.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/model_enum.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/stub.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/util.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/util_bootstrap.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/util_http.py +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api.egg-info/SOURCES.txt +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api.egg-info/dependency_links.txt +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api.egg-info/requires.txt +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api.egg-info/top_level.txt +0 -0
- {blueair_api-1.26.0 → blueair_api-1.26.1}/tests/test_intermediate_representation_aws.py +0 -0
{blueair_api-1.26.0 → blueair_api-1.26.1}/src/blueair_api/intermediate_representation_aws.py
RENAMED
@@ -90,9 +90,9 @@ class Sensor:
|
|
90
90
|
e: bool # ???
|
91
91
|
fe: bool # ??? always True.
|
92
92
|
ot: str # object type / topic name
|
93
|
-
tf: str # senml+json; topic format
|
94
93
|
tn: str # topic name a path-like name d/????/s/{n}
|
95
94
|
ttl: int # only seen 0 or -1, not sure if used.
|
95
|
+
tf: str | None = None # senml+json; topic format
|
96
96
|
|
97
97
|
@dataclasses.dataclass
|
98
98
|
class Control:
|
@@ -364,3 +364,49 @@ class T10iTest(DeviceAwsTestBase):
|
|
364
364
|
assert device.auto_regulated_humidity is NotImplemented
|
365
365
|
assert device.water_shortage is NotImplemented
|
366
366
|
assert device.wick_dry_mode is NotImplemented
|
367
|
+
|
368
|
+
|
369
|
+
class Protect7470iTest(DeviceAwsTestBase):
|
370
|
+
"""Tests for protect7470i."""
|
371
|
+
|
372
|
+
def setUp(self):
|
373
|
+
super().setUp()
|
374
|
+
with open(resources.files().joinpath('device_info/protect_7470i.json')) as sample_file:
|
375
|
+
info = json.load(sample_file)
|
376
|
+
self.device_info_helper.info.update(info)
|
377
|
+
|
378
|
+
async def test_attributes(self):
|
379
|
+
|
380
|
+
await self.device.refresh()
|
381
|
+
self.api.device_info.assert_awaited_with("fake-name-api", "fake-uuid")
|
382
|
+
|
383
|
+
with assert_fully_checked(self.device) as device:
|
384
|
+
|
385
|
+
assert device.model == ModelEnum.PROTECT_7470I
|
386
|
+
|
387
|
+
assert device.pm1 == 0
|
388
|
+
assert device.pm2_5 == 0
|
389
|
+
assert device.pm10 == 0
|
390
|
+
assert device.tVOC == 59
|
391
|
+
assert device.temperature == 23
|
392
|
+
assert device.humidity == 46
|
393
|
+
assert device.name == "air filter in room"
|
394
|
+
assert device.firmware == "2.1.1"
|
395
|
+
assert device.mcu_firmware == "1.0.12"
|
396
|
+
assert device.serial_number == "110582600000110110016855"
|
397
|
+
assert device.sku == "105826"
|
398
|
+
|
399
|
+
assert device.running is True
|
400
|
+
assert device.standby is False
|
401
|
+
assert device.night_mode is False
|
402
|
+
assert device.germ_shield is True
|
403
|
+
assert device.brightness == 100
|
404
|
+
assert device.child_lock is True
|
405
|
+
assert device.fan_speed == 91
|
406
|
+
assert device.fan_auto_mode is False
|
407
|
+
assert device.filter_usage_percentage == 50
|
408
|
+
assert device.wifi_working is True
|
409
|
+
assert device.wick_usage_percentage is NotImplemented
|
410
|
+
assert device.auto_regulated_humidity is NotImplemented
|
411
|
+
assert device.water_shortage is NotImplemented
|
412
|
+
assert device.wick_dry_mode is NotImplemented
|
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
|
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
|
File without changes
|