Skip to content

Commit d9e51f1

Browse files
lexiconzeroCopilot
andauthored
Update python_snoo/snoo.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1a9b50f commit d9e51f1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

python_snoo/snoo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ async def set_level(self, device: SnooDevice, level: SnooStates, hold: bool = Fa
235235
await self.send_command("go_to_state", device, **{"state": level.value, "hold": hold})
236236

237237
async def set_sticky_white_noise(self, device: SnooDevice, on: bool, timeout_value: SnooNoiseTimeoutLevels = SnooNoiseTimeoutLevels._15_minutes):
238+
"""Enable or disable sticky white noise for a device.
239+
240+
Args:
241+
device: The SnooDevice to control.
242+
on: True to turn sticky white noise on, False to turn it off.
243+
timeout_value: How long the white noise should remain on before timing out.
244+
Must be a member of the SnooNoiseTimeoutLevels enum. The default is
245+
SnooNoiseTimeoutLevels._15_minutes.
246+
"""
238247
await self.send_command(
239248
"set_sticky_white_noise",
240249
device,

0 commit comments

Comments
 (0)