Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unavailable if interval overlaps day boundary #5

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

mampfes
Copy link
Owner

@mampfes mampfes commented Jan 16, 2024

No description provided.

Set sensor-state of off instead of unavailable in case the data for the
next interval is unknown, but we are before the interval.
Needed in case the sensor is configured to overlap the time boundary and
the EPEX Spot source doesn't provide data for the last day (like EPEX
Spot Web Scraper).

In this case you loose the data from the previous day at midnight and
can't calculate intervals anymore.
@mampfes mampfes merged commit 352c711 into main Jan 16, 2024
1 of 2 checks passed
@mampfes mampfes mentioned this pull request Jan 16, 2024
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