Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Aug 25, 2024
1 parent 289407e commit f7983ce
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ def _set_offset(self) -> None:
if self.prices is not None:
self.model.raw_offsets = self._update_offset()
self.model.calculated_offsets = self.model.raw_offsets
#if self.model.prognosis is not None:
if len(self._hub.prognosis.prognosis) > 0:
try:
_weather_dict = self._hub.prognosis.get_weatherprognosis_adjustment(self.model.raw_offsets)
Expand All @@ -150,8 +149,6 @@ def _set_offset(self) -> None:
_LOGGER.warning(
f"Unable to calculate prognosis-offsets. Setting normal calculation: {e}"
)
#else:
# _LOGGER.debug("No prognosis available, using normal calculation")
self._hub.observer.broadcast(ObserverTypes.OffsetRecalculation)
else:
if self._hub.is_initialized:
Expand Down

0 comments on commit f7983ce

Please sign in to comment.