Skip to content

Commit

Permalink
feat: expose random colors to rest plus gen1
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlb committed Feb 16, 2024
1 parent 2e11f48 commit 1437aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hatch_rest_api/rest_plus.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def set_audio_track(self, audio_track: RestPlusAudioTrack):
def set_on(self, on: bool):
self._update({"isPowered": on})

def set_color(self, red: int, green: int, blue: int, brightness: int):
def set_color(self, red: int, green: int, blue: int, brightness: int, random: bool = False):
self._update(
{
"c": {
Expand All @@ -129,7 +129,7 @@ def set_color(self, red: int, green: int, blue: int, brightness: int):
"b": convert_from_hex(blue),
"i": convert_from_percentage(brightness),
"W": False,
"R": False,
"R": random,
}
}
)

0 comments on commit 1437aa3

Please sign in to comment.