Skip to content

Commit

Permalink
Keep previous next gas price when no new values is available
Browse files Browse the repository at this point in the history
  • Loading branch information
fsaris committed Oct 15, 2024
1 parent a6972eb commit fa58c74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/zonneplan_one/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ class ZonneplanButtonEntityDescription(ButtonEntityDescription):
native_unit_of_measurement=f"{CURRENCY_EURO}/{UnitOfVolume.CUBIC_METERS}",
state_class=SensorStateClass.MEASUREMENT,
entity_registry_enabled_default=True,
none_value_behaviour=NONE_USE_PREVIOUS,
daily_update_hour=6,
),
"status_message": ZonneplanSensorEntityDescription(
key="summary_data.usage.status_message",
Expand Down

0 comments on commit fa58c74

Please sign in to comment.