Skip to content

Commit

Permalink
Add template for state attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
dala318 committed Dec 20, 2024
1 parent ce6c2cc commit fb541a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom_components/nordpool_planner/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,12 @@ class NordpoolPlannerHealthSensor(NordpoolPlannerSensor, RestoreSensor):
def native_value(self):
"""Output state."""
return self._planner.planner_state.name

# @property
# def extra_state_attributes(self):
# """Extra state attributes."""
# state_attributes = {
# "running_state": STATE_UNKNOWN,
# "config_state": STATE_UNKNOWN,
# }
# return state_attributes

0 comments on commit fb541a5

Please sign in to comment.