Skip to content

Commit 72663e6

Browse files
Dp4 for rates
1 parent e9014ca commit 72663e6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/predbat/octopus.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -962,13 +962,13 @@ async def fetch_tariffs(self, tariffs):
962962
if rate_value is not None:
963963
start_time = time_now.strftime(TIME_FORMAT)
964964
end_time = (time_now + timedelta(minutes=30)).strftime(TIME_FORMAT)
965-
rates_stamp.append({"start": start_time, "end": end_time, "value_inc_vat": dp2(rate_value / 100)})
965+
rates_stamp.append({"start": start_time, "end": end_time, "value_inc_vat": dp4(rate_value / 100)})
966966
rate_now = rates.get(self.now_utc.minute + self.now_utc.hour * 60, None)
967967
if rate_now:
968-
rate_now = dp2(rate_now / 100)
968+
rate_now = dp4(rate_now / 100)
969969
standing_now = standing.get(self.now_utc.minute + self.now_utc.hour * 60, None)
970970
if standing_now:
971-
standing_now = dp2(standing_now / 100)
971+
standing_now = dp4(standing_now / 100)
972972

973973
self.base.dashboard_item(
974974
self.get_entity_name("sensor", tariff + "_rates"),

0 commit comments

Comments
 (0)