mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-28 04:44:39 +02:00
Users have complained about the overwhelming number of options (28+) in the configuration UI. This change splits the options into two steps: **Basic Settings (9 options):** - lights, min/max brightness, min/max color temp - sleep brightness, sleep color temp, transition, interval **Advanced Settings (20+ options):** - All other options (sunrise/sunset times, offsets, brightness modes, take_over_control, detect_non_ha_changes, etc.) The flow now works as: 1. User configures basic options 2. Menu appears: "Configure advanced options" or "Save and finish" 3. If advanced chosen, show advanced options form 4. Save combined options Changes: - Add BASIC_OPTIONS constant to const.py - Refactor OptionsFlowHandler with async_step_init, async_step_advanced, async_step_finish methods - Update strings.json with menu_options and advanced step - Update all 34 translation files with translated menu/titles - Update tests for multi-step flow Note for Weblate: After merging, run "Rescan all translation files" to pick up the new structure. Existing translations are preserved.
31 lines
1 KiB
JSON
31 lines
1 KiB
JSON
{
|
||
"title": "Adaptive Lighting",
|
||
"options": {
|
||
"step": {
|
||
"init": {
|
||
"title": "Επιλογές Adaptive Lighting",
|
||
"menu_options": {
|
||
"advanced": "Ρύθμιση σύνθετων επιλογών",
|
||
"finish": "Αποθήκευση και ολοκλήρωση"
|
||
},
|
||
"data": {},
|
||
"data_description": {}
|
||
},
|
||
"advanced": {
|
||
"title": "Σύνθετες ρυθμίσεις",
|
||
"description": "Ρυθμίστε τις σύνθετες επιλογές του Adaptive Lighting. Οι περισσότεροι χρήστες δεν χρειάζεται να αλλάξουν αυτές τις ρυθμίσεις.",
|
||
"data": {},
|
||
"data_description": {}
|
||
}
|
||
}
|
||
},
|
||
"services": {
|
||
"change_switch_settings": {
|
||
"fields": {
|
||
"only_once": {
|
||
"description": "Προσαρμογή των φώτων μόνο όταν είναι αναμμένα (`true`) ή συνεχής προσαρμογή αυτών (`false`). 🔄"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|