Skip to content

fix: resolve electricity_price sensor becoming unknown at midnight tr… - #33

Merged
adnansarajlic merged 1 commit into
mainfrom
Fix-Sensors
May 15, 2026
Merged

adnansarajlic merged 1 commit into
mainfrom
Fix-Sensors

Conversation

@adnansarajlic

Copy link
Copy Markdown
Owner

…ansition

  • Add post-midnight refresh trigger at 00:05 to fetch fresh data if today prices are missing
  • Improve midnight shift to clear stale today data and trigger API refresh when tomorrow prices are empty
  • Add fallback price lookup in _get_current_price_point() to search both today and tomorrow arrays
  • Add 6 new/updated tests covering midnight edge cases (108 total, all passing)

…ansition

- Add post-midnight refresh trigger at 00:05 to fetch fresh data if today prices are missing
- Improve midnight shift to clear stale today data and trigger API refresh when tomorrow prices are empty
- Add fallback price lookup in _get_current_price_point() to search both today and tomorrow arrays
- Add 6 new/updated tests covering midnight edge cases (108 total, all passing)
@adnansarajlic
adnansarajlic merged commit bf6a018 into main May 15, 2026
3 checks passed
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