blueair-api 1.9.3__py3-none-any.whl → 1.9.5__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
@@ -17,7 +17,7 @@ class DeviceAws(CallbacksMixin):
17
17
  serial_number: str = None
18
18
 
19
19
  brightness: int = None
20
- child_lock: int = None
20
+ child_lock: bool = None
21
21
  fan_speed: int = None
22
22
  fan_auto_mode: bool = None
23
23
  running: bool = None
@@ -66,7 +66,7 @@ class DeviceAws(CallbacksMixin):
66
66
  self.night_mode = safely_get_json_value(states, "nightmode", bool)
67
67
  self.germ_shield = safely_get_json_value(states, "germshield", bool)
68
68
  self.brightness = safely_get_json_value(states, "brightness", int)
69
- self.child_lock = safely_get_json_value(states, "childlock")
69
+ self.child_lock = safely_get_json_value(states, "childlock", bool)
70
70
  self.fan_speed = safely_get_json_value(states, "fanspeed", int)
71
71
  self.fan_auto_mode = safely_get_json_value(states, "automode", bool)
72
72
  self.filter_usage = safely_get_json_value(states, "filterusage", int)
@@ -48,8 +48,10 @@ def request_with_errors(func):
48
48
  url = kwargs["url"]
49
49
  response_text = await response.text()
50
50
  if "accounts.login" in url:
51
+ _LOGGER.debug("login error")
51
52
  raise LoginError(response_text)
52
53
  else:
54
+ _LOGGER.debug("session error")
53
55
  raise SessionError(response_text)
54
56
 
55
57
  return request_with_errors_wrapper
@@ -196,16 +198,7 @@ class HttpAwsBlueair:
196
198
  },
197
199
  },
198
200
  ],
199
- "includestates": True,
200
- "eventsubscription": {
201
- "include": [
202
- {
203
- "filter": {
204
- "o": f"= {device_uuid}",
205
- },
206
- },
207
- ],
208
- },
201
+ "includestates": True
209
202
  }
210
203
  response: ClientResponse = (
211
204
  await self._post_request_with_logging_and_errors_raised(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: blueair_api
3
- Version: 1.9.3
3
+ Version: 1.9.5
4
4
  Summary: Blueair Api Wrapper
5
5
  Home-page: https://github.com/dahlb/blueair_api
6
6
  Author: Brendan Dahl
@@ -2,16 +2,16 @@ blueair_api/__init__.py,sha256=TSAR2ntyFQWyGdKNR1iEsJJmQbNMOvnw-xdVONMHdA8,279
2
2
  blueair_api/callbacks.py,sha256=6hzAAbdq-FQYTgc5RVBQCiqJz3PaBHkIgAkg0P2NZ8U,725
3
3
  blueair_api/const.py,sha256=4c_BWF1YzFZ3lpCtywxrBVY7g7lryNxzBkYnIOK09CA,1110
4
4
  blueair_api/device.py,sha256=8fzC97FeyCvjML-73ls-vQPs2_aTNX9o-Ywk7ZTVoNI,3193
5
- blueair_api/device_aws.py,sha256=EEk38JdKPF18Tq_Gt3Qofmhe6zujoG_1Pfl8Y1LFhdY,4910
5
+ blueair_api/device_aws.py,sha256=w9TZz_l7fcjlbxMuKpI6NiTjvSfCF-XJG26YInpud3M,4917
6
6
  blueair_api/errors.py,sha256=lJ_iFU_W6zQfGRi_wsMhWDw-fAVPFeCkCbT1erIlYQQ,233
7
- blueair_api/http_aws_blueair.py,sha256=39pQDQLxElMhvNppzHLcB3N8iejwrQKbeeHKIzdHBus,17989
7
+ blueair_api/http_aws_blueair.py,sha256=m_qoCFOYICCu_U_maBvkmOha3YmNtxxtPYyapVBGKNc,17821
8
8
  blueair_api/http_blueair.py,sha256=ieDvjs0_DHSJzseO_qdvLIxdrUUHuTgSHjWb6u-_gRs,7350
9
9
  blueair_api/stub.py,sha256=04RBMbv3ZdfJzmZISj3grf43AYU7ia0parL0UKDfeXI,1273
10
10
  blueair_api/util.py,sha256=3L9-vfHfN1vUBYU0BA9ruYyNPUTmS21D-uI-Jyo5x6U,1672
11
11
  blueair_api/util_bootstrap.py,sha256=A_0wj92QpowoKy8tJgKgQMKScC_c8uyfhZlCXZup5mY,1562
12
12
  blueair_api/util_http.py,sha256=45AJG3Vb6LMVzI0WV22AoSyt64f_Jj3KpOAwF5M6EFE,1327
13
- blueair_api-1.9.3.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
14
- blueair_api-1.9.3.dist-info/METADATA,sha256=CsDZt38y576G4dU-JBYEdhN20lB7wcpnGsjgTjSu1T0,2035
15
- blueair_api-1.9.3.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
16
- blueair_api-1.9.3.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
17
- blueair_api-1.9.3.dist-info/RECORD,,
13
+ blueair_api-1.9.5.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
14
+ blueair_api-1.9.5.dist-info/METADATA,sha256=kGusrhI99w5sIFqDK8yhnkdGifE0eXaAOh32Wl_xqW0,2035
15
+ blueair_api-1.9.5.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
16
+ blueair_api-1.9.5.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
17
+ blueair_api-1.9.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5