Skip to content

Conversation

@lexiconzero
Copy link

Created boilerplate to handle sending a timeout value through to the API with the same values as the snoo app provides. Default value set to 15 minutes if no timeout is provided

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for configurable timeout levels for the Snoo's sticky white noise feature. Previously, the timeout was hardcoded to 15 minutes; now users can select from timeout values ranging from 5 to 180 minutes in 5-minute increments.

Changes:

  • Added a new SnooNoiseTimeoutLevels IntEnum with timeout options matching the official Snoo app
  • Updated set_sticky_white_noise() method to accept an optional timeout_value parameter with a default of 15 minutes
  • Refactored imports in baby.py from absolute to relative imports

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
python_snoo/containers.py Introduces SnooNoiseTimeoutLevels IntEnum with timeout values from 5-180 minutes; adds from __future__ import annotations import
python_snoo/snoo.py Updates set_sticky_white_noise() to accept optional timeout_value parameter and imports the new enum
python_snoo/baby.py Converts imports from absolute to relative format (unrelated refactoring)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant