blueair-api 1.36.1__py3-none-any.whl → 1.36.3__py3-none-any.whl

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/device_aws.py CHANGED
@@ -101,6 +101,7 @@ class DeviceAws(CallbacksMixin):
101
101
  self.tVOC = sensor_data_safe_get("tVOC")
102
102
  self.temperature = sensor_data_safe_get("t")
103
103
  self.humidity = sensor_data_safe_get("h")
104
+ self.fan_speed_0 = sensor_data_safe_get("fsp0")
104
105
 
105
106
  def info_safe_get(path):
106
107
  # directly reads for the schema. If the schema field is
@@ -117,7 +117,7 @@ class Control:
117
117
 
118
118
  @dataclasses.dataclass
119
119
  class SensorRecord:
120
- values: typing.Dict[str, int]
120
+ values: dict[str, int]
121
121
  timestamp: float | None
122
122
 
123
123
 
@@ -137,7 +137,7 @@ class SensorHistory(list[SensorRecord]):
137
137
  def to_latest(self) -> SensorRecord:
138
138
  def key(e):
139
139
  return e.timestamp
140
- self.sort(key=key)
140
+ self.sort(key=key, reverse=True)
141
141
  if len(self) > 0:
142
142
  return self[0]
143
143
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blueair_api
3
- Version: 1.36.1
3
+ Version: 1.36.3
4
4
  Summary: Blueair Api Wrapper
5
5
  Author-email: Brendan Dahl <dahl.brendan@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/dahlb/blueair_api
@@ -2,18 +2,18 @@ blueair_api/__init__.py,sha256=gk2CZWEnEo4FlP7VcJsDs1kujZ_ryXF5H9n3Kd-4WWo,313
2
2
  blueair_api/callbacks.py,sha256=fvrJsqH5eDRxWOGWiZkF2uLU4n2ve0zzU17ERqWbHP8,756
3
3
  blueair_api/const.py,sha256=x-2ae2faZqsalYCuqA_ZpGSZSu0_x_rTrvikagnM9PU,1585
4
4
  blueair_api/device.py,sha256=4mjoYGOiVGi_yw5ZRnpgwSRcV9q68nseC6VgdCDyWAQ,5554
5
- blueair_api/device_aws.py,sha256=ClvpDKT9prv4d15j1fdF1S4gtdH810ZF-iKRN6WXbr0,10506
5
+ blueair_api/device_aws.py,sha256=Ksc2QDJtntgNEJZfO3tVfHyGwDmnG9YTPZAoJ_UWQdk,10562
6
6
  blueair_api/errors.py,sha256=lJ_iFU_W6zQfGRi_wsMhWDw-fAVPFeCkCbT1erIlYQQ,233
7
7
  blueair_api/http_aws_blueair.py,sha256=4-qrtqYkXHejUhImyDisnLJ-6sDf_YZkzD_Nv-KcBUw,9450
8
8
  blueair_api/http_blueair.py,sha256=IMnKXs9S0Z-t1GVshSItjNr9tTdtXjh7-T-tHpsbzhE,11752
9
- blueair_api/intermediate_representation_aws.py,sha256=F6AcI57tT6b1K7Fldj2Y4doHCE7Ohnyqb_414mlWJkk,7028
9
+ blueair_api/intermediate_representation_aws.py,sha256=g4S7TsRxJd4uh-0k8ByvgG36AXDiPPbDtlHn5ZOTk_A,7035
10
10
  blueair_api/model_enum.py,sha256=gH82gAnnxnK7JFIHbfjkFXFA3p_hSmujvvuQ0GQyzm4,494
11
11
  blueair_api/stub.py,sha256=J1BXHUzRR4P32q9WkbucmMqzAjqxS722NSMK4TLZG8o,1176
12
12
  blueair_api/util.py,sha256=2FerJEliR4AQc8nBeAMXb7nyl-CPhUszaHxFcVq4p0s,2105
13
13
  blueair_api/util_bootstrap.py,sha256=oo6qqEYUxWb4wLLivk7ofB0YFrKsTZo5tW0U2wc3-D0,1757
14
14
  blueair_api/util_http.py,sha256=LohO13eBk7_MCfBRg3tMKjLklDTr87RC6Q8vLffwX1M,1464
15
- blueair_api-1.36.1.dist-info/licenses/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
16
- blueair_api-1.36.1.dist-info/METADATA,sha256=HqRjqIZcXbqPqlTSypPnHEXkeOwHv5dLFwMpUCVoPm4,2017
17
- blueair_api-1.36.1.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
18
- blueair_api-1.36.1.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
19
- blueair_api-1.36.1.dist-info/RECORD,,
15
+ blueair_api-1.36.3.dist-info/licenses/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
16
+ blueair_api-1.36.3.dist-info/METADATA,sha256=aHcdb1CCbfMZ37qxHAZTiWvn5vLR9AS3Ywn7xzL5OUM,2017
17
+ blueair_api-1.36.3.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
18
+ blueair_api-1.36.3.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
19
+ blueair_api-1.36.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.7.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5