blueair-api 1.23.0__py3-none-any.whl → 1.24.1__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.py CHANGED
@@ -81,16 +81,17 @@ class Device(CallbacksMixin):
81
81
  self.wifi_working = attributes["wifi_status"] == "1"
82
82
  else:
83
83
  self.wifi_working = False
84
- for data_point in transform_data_points(await self.api.get_data_points_since(self.uuid)):
85
- _LOGGER.debug(data_point)
86
- self.pm25 = safely_get_json_value(data_point, "pm25", int)
87
- self.pm10 = safely_get_json_value(data_point, "pm10", int)
88
- self.pm1 = safely_get_json_value(data_point, "pm1", int)
89
- self.voc = safely_get_json_value(data_point, "voc", int)
90
- self.co2 = safely_get_json_value(data_point, "co2", int)
91
- self.temperature = safely_get_json_value(data_point, "temperature", int)
92
- self.humidity = safely_get_json_value(data_point, "humidity", int)
93
- self.all_pollution = safely_get_json_value(data_point, "all_pollution", int)
84
+ if self.compatibility != "sense+":
85
+ for data_point in transform_data_points(await self.api.get_data_points_since(self.uuid)):
86
+ _LOGGER.debug(data_point)
87
+ self.pm25 = safely_get_json_value(data_point, "pm25", int)
88
+ self.pm10 = safely_get_json_value(data_point, "pm10", int)
89
+ self.pm1 = safely_get_json_value(data_point, "pm1", int)
90
+ self.voc = safely_get_json_value(data_point, "voc", int)
91
+ self.co2 = safely_get_json_value(data_point, "co2", int)
92
+ self.temperature = safely_get_json_value(data_point, "temperature", int)
93
+ self.humidity = safely_get_json_value(data_point, "humidity", int)
94
+ self.all_pollution = safely_get_json_value(data_point, "all_pollution", int)
94
95
  _LOGGER.debug(f"refreshed blueair device: {self}")
95
96
  self.publish_updates()
96
97
 
blueair_api/device_aws.py CHANGED
@@ -140,6 +140,8 @@ class DeviceAws(CallbacksMixin):
140
140
  def model(self) -> ModelEnum:
141
141
  if self.sku == "111633":
142
142
  return ModelEnum.HUMIDIFIER_H35I
143
+ if self.sku == "105820":
144
+ return ModelEnum.PROTECT_7440I
143
145
  if self.sku == "105826":
144
146
  return ModelEnum.PROTECT_7470I
145
147
  if self.sku == "110059":
blueair_api/model_enum.py CHANGED
@@ -45,6 +45,16 @@ class ModelEnum(Enum):
45
45
  FeatureEnum.HUMIDITY,
46
46
  FeatureEnum.WATER_SHORTAGE,
47
47
  ]
48
+ PROTECT_7440I = "Blueair Protect 7440i", [
49
+ FeatureEnum.TEMPERATURE,
50
+ FeatureEnum.HUMIDITY,
51
+ FeatureEnum.VOC,
52
+ FeatureEnum.PM1,
53
+ FeatureEnum.PM10,
54
+ FeatureEnum.PM25,
55
+ FeatureEnum.FILTER_EXPIRED,
56
+ FeatureEnum.CHILD_LOCK,
57
+ ]
48
58
  PROTECT_7470I = "Blueair Protect 7470i", [
49
59
  FeatureEnum.TEMPERATURE,
50
60
  FeatureEnum.HUMIDITY,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: blueair_api
3
- Version: 1.23.0
3
+ Version: 1.24.1
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
@@ -1,18 +1,18 @@
1
1
  blueair_api/__init__.py,sha256=GucsIENhTF4AVxPn4Xyr4imUxJJ8RO8RYt1opHCF2hQ,326
2
2
  blueair_api/callbacks.py,sha256=eqgfe1qN_NNWOp2qNSP123zQJxh_Ie6vZXp5EHp6ePc,757
3
3
  blueair_api/const.py,sha256=fRth29dQT1dguM7L4ij8pDefB_vBrevAHqTdfNvSugs,1048
4
- blueair_api/device.py,sha256=XhEfo2qb3WHN_6c67ZSXMnzToZesh6pyGnCGa2uTncU,3685
5
- blueair_api/device_aws.py,sha256=tqrpUyrgsuTa6eu_Q9ycqJj41HH2NgDuq6T5amU25V0,5871
4
+ blueair_api/device.py,sha256=1cauwVaRXTVcUay_wA1mIpR-f7RPoxUp45lpredkNMo,3768
5
+ blueair_api/device_aws.py,sha256=mZFWsXVrKgEYgqKVJyAxXfuEADtDKujZcevaMf1z-Y4,5947
6
6
  blueair_api/errors.py,sha256=lJ_iFU_W6zQfGRi_wsMhWDw-fAVPFeCkCbT1erIlYQQ,233
7
7
  blueair_api/http_aws_blueair.py,sha256=m_qoCFOYICCu_U_maBvkmOha3YmNtxxtPYyapVBGKNc,17821
8
8
  blueair_api/http_blueair.py,sha256=n9F5fvEROIyAkqDMM22l84PB7ZoeEkWbj2YuCZpeDNg,9411
9
- blueair_api/model_enum.py,sha256=C42DpLsHO2QLez-qfrFHZnr9QaNPPcnsISm4SoRnvoY,2194
9
+ blueair_api/model_enum.py,sha256=Z9Ne4icNEjbGNwdHJZSDibcKJKwv-W1BRpZx01RGFuY,2480
10
10
  blueair_api/stub.py,sha256=sTWyRSDObzrXpZToAgDmZhCk3q8SsGN35h-kzMOqSOc,1272
11
11
  blueair_api/util.py,sha256=4g8dTlxawBYKslOJS7WCWss0670mtUc53c3L8NiPTsM,2201
12
12
  blueair_api/util_bootstrap.py,sha256=Vewg7mT1qSRgzOOJDrpXrVhGwcFPRnMrqhJVSIB-0AA,1688
13
13
  blueair_api/util_http.py,sha256=45AJG3Vb6LMVzI0WV22AoSyt64f_Jj3KpOAwF5M6EFE,1327
14
- blueair_api-1.23.0.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
15
- blueair_api-1.23.0.dist-info/METADATA,sha256=hr1z37I41YsNcIw4IhoW1KDj9_CSmVRN-iPjKT5fHW0,1995
16
- blueair_api-1.23.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
17
- blueair_api-1.23.0.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
18
- blueair_api-1.23.0.dist-info/RECORD,,
14
+ blueair_api-1.24.1.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
15
+ blueair_api-1.24.1.dist-info/METADATA,sha256=-79G2o5JYGfQMu249nFw5BNsxRLKnGUxwAA-gengZQM,1995
16
+ blueair_api-1.24.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
17
+ blueair_api-1.24.1.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
18
+ blueair_api-1.24.1.dist-info/RECORD,,