Skip to content

v0.6.0 - #45

Open
rndm2 wants to merge 17 commits into
duhow:masterfrom
rndm2:master
Open

v0.6.0#45
rndm2 wants to merge 17 commits into
duhow:masterfrom
rndm2:master

Conversation

@rndm2

@rndm2 rndm2 commented Jun 10, 2026

Copy link
Copy Markdown

v0.6.0

This release focuses on production hardening and configurability.

Added

  • Added a configurable scan period option, in seconds.
  • Added aigues_barcelona.import_historical_data service for manual historical import.
  • Added repository/HACS hygiene files and brand assets.

Changed

  • Kept historical import behavior conservative and backward-compatible.
  • Updated options handling so config entry reloads when options change.
  • Improved coordinator cleanup on integration unload.
  • Kept the legacy reset_and_refresh_data service as a compatibility alias. It no longer claims to reset statistics; it imports historical data only.

Fixed

  • Avoid logging sensitive API responses/tokens.
  • Replaced unsafe runtime assert usage with explicit API errors.
  • Improved API query parameter handling.
  • Fixed stale coordinator cleanup after unload/reload.
  • Cleaned logging around failed historical import retries.

Notes

Historical import still works week by week, retries failed weeks, skips existing daily statistics, and automatically turns should_import_history back off after the startup import.

kmarianovskyi and others added 12 commits September 6, 2025 20:39
Fixed today's statistics import error
Minor bug fixes (date/time)
Fixed today's statistics import error
Minor bug fixes (date/time)
Fixed today's statistics import error
Minor bug fixes (date/time)
Added 2captcha call throttling to not exhaust balance in case of Aiguas API errors
@xjols

xjols commented Jul 14, 2026

Copy link
Copy Markdown

He provat aquesta versió treient la original de @duhow i instal·lant des de zero la v0.6.0 de @rndm2. No em deixa passar de la primera part de la configuració, donant-me error de credencials incorrectes...

Diari de registre: custom_components.aigues_barcelona.api
Font: custom_components/aigues_barcelona/api.py:183
Integració: Aigues de Barcelona (documentació, problemes)
Produït per primer cop: 01:39:28 (2 ocurrències)
Últim registre: 02:28:32
2Captcha API error: ERROR_WRONG_USER_KEY

No sé que puc estar fent malament. La clau API que demana la configuració és el mateix token ofextokenjwr que comença per "ey...”?

Si que puc dir que la contrasenya te algun símbol, però en la versió de @duhow funciona bé.

No sé que pot estar fallant...

Gràcies
Screenshot_20260714-030439

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.

3 participants