You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API-budget counter now resets on client-ID rotation.ApiBudgetTracker only rolls over at the calendar-month boundary, which is correct for a stable key — but a user rotating to a new Husqvarna Application (fresh server-side quota) was left with the old counter until the 1st of the next month, so hub_api_budget_remaining lied and the is_exhausted auto-stop could still fire on a fresh budget. Reauth and reconfigure now detect a changed CONF_CLIENT_ID and zero the persisted counter via async_reset_api_budget_store before reloading. Same-client_id reauth (just refreshing a rotated secret) preserves the counter.
Added
ApiBudgetTracker.async_reset() and module-level async_reset_api_budget_store(hass, entry_id) helpers in base_coordinator.py.