Skip to content

Commit

Permalink
Merge pull request #401 from custom-components/Hellowlol-patch-2
Browse files Browse the repository at this point in the history
Update __init__.py
  • Loading branch information
Hellowlol committed Aug 31, 2024
2 parents 2214b84 + 2389d22 commit 46e66ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions custom_components/nordpool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ async def _someday(self, area: str, currency: str, day: str):
await self.update_today(areas=self.areas)
except InvalidValueException:
_LOGGER.debug("No data available for today, retrying later")
try:
await self.update_tomorrow(areas=self.areas)
except InvalidValueException:
_LOGGER.debug("No data available for tomorrow, retrying later")

# Send a new data request after new data is updated for this first run
# This way if the user has multiple sensors they will all update
Expand Down

1 comment on commit 46e66ba

@jammi
Copy link

@jammi jammi commented on 46e66ba Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the "tomorrow" prices after midnight, until a "new tomorrow" exists some time next afternoon.

Please sign in to comment.