mirror of https://github.com/home-assistant/core
Move ZHA config panel section translations to the backend (#49816)
This commit is contained in:
parent
684ea9e49b
commit
4ed74cd2f5
|
@ -29,6 +29,19 @@
|
||||||
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]"
|
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"config_panel": {
|
||||||
|
"zha_options": {
|
||||||
|
"title": "Global Options",
|
||||||
|
"enable_identify_on_join": "Enable identify effect when devices join the network",
|
||||||
|
"default_light_transition": "Default light transition time (seconds)"
|
||||||
|
},
|
||||||
|
"zha_alarm_options": {
|
||||||
|
"title": "Alarm Control Panel Options",
|
||||||
|
"alarm_master_code": "Master code for the alarm control panel(s)",
|
||||||
|
"alarm_failed_tries": "The number of consecutive failed code entries to trigger an alarm",
|
||||||
|
"alarm_arm_requires_code": "Code required for arming actions"
|
||||||
|
}
|
||||||
|
},
|
||||||
"device_automation": {
|
"device_automation": {
|
||||||
"action_type": { "squawk": "Squawk", "warn": "Warn" },
|
"action_type": { "squawk": "Squawk", "warn": "Warn" },
|
||||||
"trigger_type": {
|
"trigger_type": {
|
||||||
|
|
|
@ -33,6 +33,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"config_panel": {
|
||||||
|
"zha_alarm_options": {
|
||||||
|
"alarm_arm_requires_code": "Code required for arming actions",
|
||||||
|
"alarm_failed_tries": "The number of consecutive failed code entries to trigger an alarm",
|
||||||
|
"alarm_master_code": "Master code for the alarm control panel(s)",
|
||||||
|
"title": "Alarm Control Panel Options"
|
||||||
|
},
|
||||||
|
"zha_options": {
|
||||||
|
"default_light_transition": "Default light transition time (seconds)",
|
||||||
|
"enable_identify_on_join": "Enable identify effect when devices join the network",
|
||||||
|
"title": "Global Options"
|
||||||
|
}
|
||||||
|
},
|
||||||
"device_automation": {
|
"device_automation": {
|
||||||
"action_type": {
|
"action_type": {
|
||||||
"squawk": "Squawk",
|
"squawk": "Squawk",
|
||||||
|
|
|
@ -142,6 +142,12 @@ def gen_strings_schema(config: Config, integration: Integration):
|
||||||
vol.Optional("system_health"): {
|
vol.Optional("system_health"): {
|
||||||
vol.Optional("info"): {str: cv.string_with_no_html}
|
vol.Optional("info"): {str: cv.string_with_no_html}
|
||||||
},
|
},
|
||||||
|
vol.Optional("config_panel"): cv.schema_with_slug_keys(
|
||||||
|
cv.schema_with_slug_keys(
|
||||||
|
cv.string_with_no_html, slug_validator=lowercase_validator
|
||||||
|
),
|
||||||
|
slug_validator=vol.Any("_", cv.slug),
|
||||||
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue