Skip to content

Commit

Permalink
misc fix update of state in sensor.
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Aug 3, 2023
1 parent a7c1658 commit bd3074b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions custom_components/peaqnext/service/models/sensor_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,8 @@ class NextSensor:
_mock_hour: int|None = None
_mock_date: date|None = None

def __post_init__(self) -> None:
self._best_start = HourModel(0, 0, 0, 0)
self._best_close_start = HourModel(0, 0, 0, 0)
self._all_sequences = []

@property
def best_start(self) -> HourModel:
print("best_start")
return cheapest_hour(
hours_list=self.all_sequences,
cheapest_cap=None,
Expand Down

0 comments on commit bd3074b

Please sign in to comment.