Skip to content

Commit

Permalink
Added high_price_limit attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-fursov committed Nov 25, 2022
1 parent 6b8d92d commit ef63549
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/entsoe_stats/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def get_stats_for_consumption_duration(
"total_best": STATE_UNKNOWN,
"average_best": STATE_UNKNOWN,
"average_other_time": STATE_UNKNOWN,
"high_price_limit": STATE_UNKNOWN,
"high_prices": STATE_UNKNOWN,
"high_price_now": STATE_UNKNOWN,
}
Expand Down Expand Up @@ -126,6 +127,7 @@ def get_stats_for_consumption_duration(
"total": round(total_best_price, 5),
"average": round(avrg_best_price, 5),
"average_other_time": round(avrg_other_price, 5),
"high_price_limit": round(high_price_limit, 5),
"high_prices": high_prices,
"high_price_now": now_high_price,
}
Expand Down

0 comments on commit ef63549

Please sign in to comment.