Skip to content

Commit

Permalink
deadline attribute in notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrfilipmarek committed Dec 13, 2024
1 parent 1e8b209 commit bd44f10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/homeassistantedupage/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ def extra_state_attributes(self):
attributes[f"event_{i+1}_id"] = event.event_id
attributes[f"event_{i+1}_text"] = event.text
attributes[f"event_{i+1}_timestamp"] = event.timestamp.strftime("%Y-%m-%d %H:%M:%S")
attributes[f"event_{i+1}_deadline"] = event.additional_data.get("date") if event.additional_data else None
author_name = event.author if event.author else "no author"
attributes[f"event_{i+1}_author"] = author_name

Expand Down

0 comments on commit bd44f10

Please sign in to comment.