Skip to content

fix: back off failed cleaning history fetches#1606

Open
Komzpa wants to merge 1 commit into
Tasshack:devfrom
Komzpa:codex/cleaning-history-cloud-backoff
Open

fix: back off failed cleaning history fetches#1606
Komzpa wants to merge 1 commit into
Tasshack:devfrom
Komzpa:codex/cleaning-history-cloud-backoff

Conversation

@Komzpa
Copy link
Copy Markdown

@Komzpa Komzpa commented May 4, 2026

Summary

  • add a short retry backoff for failed cloud cleaning-history fetches
  • treat missing cloud event results as a failed optional history request without marking the vacuum unavailable
  • keep normal device and map update cadence unchanged for active state/map responsiveness

Context

On a live Home Assistant instance, an idle X20+ repeatedly logged failures from sg.api.io.mi.com/app/user/get_user_device_data (Read timed out and Connection reset by peer). Dreame debug showed the vacuum was otherwise healthy and still polling device state every ~10s, so this only backs off the optional cleaning-history fetch after a cloud failure.

Validation

  • python3 -m py_compile custom_components/dreame_vacuum/dreame/device.py
  • git diff --check

@Komzpa Komzpa force-pushed the codex/cleaning-history-cloud-backoff branch from 77fa5ee to a1e1609 Compare May 14, 2026 04:06
@Komzpa Komzpa marked this pull request as ready for review May 24, 2026 21:37
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