Skip to content

fix(#176): track manual feed state locally for predictable switch behavior - #250

Open
dennismdejong wants to merge 1 commit into
jjjonesjr33:devfrom
dennismdejong:fix/upstream-176
Open

fix(#176): track manual feed state locally for predictable switch behavior#250
dennismdejong wants to merge 1 commit into
jjjonesjr33:devfrom
dennismdejong:fix/upstream-176

Conversation

@dennismdejong

Copy link
Copy Markdown

Fixes #176

Problem: The Manually Open/Close Lid switch state was driven solely by wetFeedingPlan.manualFeedId from the API. When a scheduled feeding started or ended independently, the switch could show the opposite state of the actual device, requiring the user to click twice.

Fix:

  • Track the manual feed state locally (_manual_feed_active) so the switch reflects the user's last action predictably
  • Sync with API during refresh (if manualFeedId is present, the switch shows ON)
  • Log a warning when stop is called without a valid manualFeedId (defensive)

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.

[Bug]: Polar Wet Feeder - HA use stops scheduling from working

1 participant