Skip to content

Commit

Permalink
Merge pull request #65 from rine77/64-feature_request-deadline-attrib…
Browse files Browse the repository at this point in the history
…ute-in-homeworks-notification-sensor

deadline attribute in notifications
  • Loading branch information
rine77 authored Dec 15, 2024
2 parents 1e8b209 + bd44f10 commit 3f2acae
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 3f2acae

Please sign in to comment.