From bf6a85c6cc314c09ca5baab6a323dc23a0163a48 Mon Sep 17 00:00:00 2001 From: Rene Lange Date: Wed, 11 Dec 2024 07:41:51 +0100 Subject: [PATCH] entity id now with edupage prefix --- custom_components/homeassistantedupage/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/homeassistantedupage/sensor.py b/custom_components/homeassistantedupage/sensor.py index 5bab9ec..113047d 100644 --- a/custom_components/homeassistantedupage/sensor.py +++ b/custom_components/homeassistantedupage/sensor.py @@ -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}" @@ -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}"