mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-19 10:14:04 +02:00
* Implement collapsible sections for options flow Replace single-form options flow with collapsible sections: - Basic options always visible (9 fields) - Advanced options in collapsed section (collapsed by default) - Single form, no multi-step navigation needed Changes: - const.py: Add BASIC_OPTIONS set defining which options are basic - config_flow.py: Use section() from data_entry_flow to wrap advanced options - strings.json: Restructure with sections.advanced for section translations - tests: Update to handle nested section input format * Update README.md, strings.json, and services.yaml * Fix: Use vol.Required for section to render properly * Fix section structure: separate basic and advanced fields in strings.json * Remove accidentally added files * Add local directories to gitignore * Update README.md, strings.json, and services.yaml * Preserve options behavior with collapsible sections * Test serialized advanced options section * fix: preserve config metadata when retrying options * fix: keep options form defaults serializable --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
46 lines
1.8 KiB
JSON
46 lines
1.8 KiB
JSON
{
|
|
"services": {
|
|
"apply": {
|
|
"description": "Pas die huidige Adaptive Lighting-instellings op ligte toe.",
|
|
"fields": {
|
|
"lights": {
|
|
"description": "'n Lig (of lys van ligte) om die instellings op toe te pas. 💡"
|
|
}
|
|
}
|
|
},
|
|
"change_switch_settings": {
|
|
"fields": {
|
|
"only_once": {
|
|
"description": "Pas ligte net aan wanneer hulle aangeskakel is (`true`) of hou aan om dit aan te pas (`false`)"
|
|
},
|
|
"sunrise_offset": {
|
|
"description": "Pas sonsopkomstyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰"
|
|
},
|
|
"sunset_offset": {
|
|
"description": "Pas sonsondergangtyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"title": "Aanpasbare beligting opsies",
|
|
"data": {},
|
|
"data_description": {},
|
|
"sections": {
|
|
"advanced": {
|
|
"data": {
|
|
"adapt_only_on_bare_turn_on": "adapt_only_on_bare_turn_on: Wanneer ligte aanvanklik aangeskakel word. As dit op \"true\" gestel is, pas AL slegs aan as \"light.turn_on\" opgeroep word sonder om kleur of helderheid te spesifiseer. ❌🌈 Dit verhoed bv. aanpassing wanneer 'n toneel geaktiveer word. As `onwaar`, pas AL aan ongeag die teenwoordigheid van kleur of helderheid in die aanvanklike `diens_data`. Moet `oorname_beheer` geaktiveer moet word. 🕵️ "
|
|
},
|
|
"data_description": {
|
|
"sunrise_offset": "Pas sonsopkomstyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰",
|
|
"sunset_offset": "Pas sonsondergangtyd aan met 'n positiewe of negatiewe afwyking in sekondes. ⏰"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"title": "Aanpasbare beligting"
|
|
}
|