Skip to content

Commit

Permalink
entity id now with edupage prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rine77 committed Dec 11, 2024
1 parent 87b6d83 commit bf6a85c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/homeassistantedupage/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, coordinator, student_id, student_name, subject_name, grades=N
self._subject_name = unidecode(subject_name).replace(' ', '_').lower()
self._grades = grades or []

self._attr_name = f"{student_name} - {subject_name}"
self._attr_name = f"Edupage - {student_name} - {subject_name}"
self._name = self._attr_name

self._unique_id = f"edupage_subject_{self._student_id}_{self._student_name}_{self._subject_name}"
Expand Down Expand Up @@ -116,7 +116,7 @@ def __init__(self, coordinator, student_id, student_name, notifications):
self._student_id = student_id
self._student_name = unidecode(student_name).replace(' ', '_').lower()

self._attr_name = f"Notification {student_name}"
self._attr_name = f"Edupage - Notification {student_name}"
self._name = self._attr_name

self._unique_id = f"edupage_notification_{self._student_id}_{self._student_name}"
Expand Down

0 comments on commit bf6a85c

Please sign in to comment.