Skip to content

Commit

Permalink
Merge pull request #162 from Arnoudd/patch-2
Browse files Browse the repository at this point in the history
Add `none_value_behaviour=NONE_IS_ZERO` for new flex/powerplay sensor
  • Loading branch information
fsaris authored Feb 26, 2025
2 parents 941d9ad + a8950b1 commit b1d5905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/zonneplan_one/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ class ZonneplanButtonEntityDescription(ButtonEntityDescription):
native_unit_of_measurement='EUR',
state_class=SensorStateClass.TOTAL_INCREASING,
entity_registry_enabled_default=True,
none_value_behaviour=NONE_IS_ZERO,
),
"session_average_cost_in_cents": ZonneplanSensorEntityDescription(
key="charge_point_data.meta.session_average_cost_in_cents",
Expand Down

0 comments on commit b1d5905

Please sign in to comment.