Skip to content

Commit

Permalink
Add support for nightmode
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanrobichaud4 committed Mar 16, 2024
1 parent 15e9842 commit 09c62c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/blueair_api/device_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ async def set_child_lock(self, child_lock: bool):
self.child_lock = child_lock
await self.api.set_device_info(self.uuid, "childlock", "vb", child_lock)
self.publish_updates()

async def set_night_mode(self, night_mode: bool):
self.night_mode = night_mode
await self.api.set_device_info(self.uuid, "nightmode", "vb", night_mode)
self.publish_updates()

def __repr__(self):
return {
Expand Down

0 comments on commit 09c62c5

Please sign in to comment.