diff --git a/custom_components/webuntis/config_flow.py b/custom_components/webuntis/config_flow.py index 7f3af2e..b9b545d 100644 --- a/custom_components/webuntis/config_flow.py +++ b/custom_components/webuntis/config_flow.py @@ -232,6 +232,7 @@ def _show_form_user( "klasse", "teacher", ], # "subject", "room" + translation_key="timetable_source", mode="dropdown", ) ), diff --git a/custom_components/webuntis/translations/en.json b/custom_components/webuntis/translations/en.json index 7c29b47..90183f6 100644 --- a/custom_components/webuntis/translations/en.json +++ b/custom_components/webuntis/translations/en.json @@ -23,7 +23,11 @@ "username": "Username", "password": "Password", "timetable_source": "Timetable source", - "timetable_source_id": "Full name/Class/Subject/Room" + "timetable_source_id": "Full name/Class" + }, + "data_description": { + "timetable_source": "Select the source of the timetable", + "timetable_source_id": "Enter the full name of the student/teacher or the class name" } } } @@ -127,6 +131,15 @@ "lesson_change": "Lesson was swapped" } }, + "timetable_source": { + "options": { + "student": "Student", + "klasse": "Klasse", + "teacher": "Teacher", + "subject": "Subject", + "room": "Raum" + } + }, "notify_template": { "options": { "message_title": "Message & Title",