Skip to content

feat: Enforce a 60-second minimum REST polling interval - #42

Open
stuartp44 with Copilot wants to merge 2 commits into
mainfrom
copilot/stuartp44closes-41-request-from-minibrew
Open

stuartp44 with Copilot wants to merge 2 commits into
mainfrom
copilot/stuartp44closes-41-request-from-minibrew

Conversation

Copilot AI commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

The issue reports excessive API traffic and recommends polling at most once per minute, and removing requests to the nonexistent /v1/kegs/ endpoint.

  • Polling: Reject intervals below 60 seconds in options and clamp saved values at runtime. The default remains 300 seconds.
  • Endpoint review: This integration already uses the brewery overview and device-list methods; it contains no /v1/kegs/ call to remove.
realtime_poll_interval = max(
    MIN_REALTIME_POLL_INTERVAL,
    options.get(CONF_REALTIME_POLL_INTERVAL, DEFAULT_REALTIME_POLL_INTERVAL),
)

Copilot AI linked an issue Oct 30, 2026 that may be closed by this pull request
Co-authored-by: stuartp44 <1926002+stuartp44@users.noreply.github.com>
Copilot AI changed the title [WIP] Determine if issue is valid for request from Minibrew Enforce a 60-second minimum REST polling interval Oct 30, 2026
Copilot AI requested a review from stuartp44 October 30, 2026 20:31
@stuartp44 stuartp44 changed the title Enforce a 60-second minimum REST polling interval feat: Enforce a 60-second minimum REST polling interval Nov 1, 2026
@stuartp44
stuartp44 marked this pull request as ready for review November 1, 2026 11:15
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.

Request from Minibrew

2 participants