adaptive-lighting/custom_components/adaptive_lighting/translations/gl.json
Bas Nijholt 472796215b
Implement collapsible sections for options flow (#1313)
* 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>
2026-09-06 17:18:42 +02:00

53 lines
1.7 KiB
JSON

{
"options": {
"step": {
"init": {
"data_description": {
"interval": "Frecuencia para adaptar as luces, en segundos. 🔄",
"sleep_brightness": "Porcentaxe de brillo das luces en modo durmir. 😴"
},
"title": "Configuración de Iluminación Adaptativa",
"sections": {
"advanced": {
"data": {},
"data_description": {
"sunrise_offset": "Axusta a hora do amencer cun desfasamento positivo ou negativo en segundos. ⏰",
"sunset_offset": "Axusta a hora da posta de sol cun desfasamento positivo ou negativo en segundos. ⏰",
"send_split_delay": "Retraso (ms) entre `separate_turn_on_commands`"
}
}
},
"data": {}
}
}
},
"title": "Iluminación Adaptativa",
"services": {
"change_switch_settings": {
"fields": {
"sleep_brightness": {
"description": "Porcentaxe de brillo das luces en modo durmir. 😴"
},
"only_once": {
"description": "Adaptar luces só cando estean acesas (`true`) ou mantelas adaptándose (`false`). 🔄"
},
"sunrise_offset": {
"description": "Axusta a hora do amencer cun desfasamento positivo ou negativo en segundos. ⏰"
},
"sunset_offset": {
"description": "Axusta a hora da posta de sol cun desfasamento positivo ou negativo en segundos. ⏰"
},
"transition": {
"description": "Duración da transición cando as luces cambian, en segundos. 🕑"
}
}
}
},
"config": {
"step": {
"user": {
"title": "Escolle un nome para a instancia de Iluminación Dinámica"
}
}
}
}