We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cdc3d5 commit eae9e45Copy full SHA for eae9e45
src/blueair_api/device.py
@@ -57,7 +57,8 @@ async def refresh(self):
57
self.brightness = int(attributes["brightness"])
58
else:
59
self.brightness = 0
60
- self.child_lock = bool(attributes["child_lock"])
+ if "child_lock" in attributes:
61
+ self.child_lock = bool(attributes["child_lock"])
62
if "night_mode" in attributes:
63
self.night_mode = bool(attributes["night_mode"])
64
self.fan_speed = int(attributes["fan_speed"])
0 commit comments