Hello,
I’m writing an integration. I’m using the config_flow to configure it.
I’m facing a case which I can’t figure out how to do:
I have the following schema:
vol.Schema(
{
vol.Required(CONF_NAME): cv.string,
vol.Required(
CONF_THERMOSTAT_TYPE, default=CONF_THERMOSTAT_SWITCH
): vol.In(CONF_THERMOSTAT_TYPES)
)
Where CONF_THERMOSTAT_TYPES is defined as [“thermostat_over_switch”, “thermostat_over_climate”]
I have define my translations for thermostat_over_switch and thermostat_over_climate in strings.json and en.json but there are not applied. Translations are the following:
"step": {
"user": {
"title": "Add new Versatile Thermostat",
"description": "Main mandatory attributes",
"data": {
"name": "Name",
"thermostat_type": "Thermostat type",
"thermostat_over_switch": "Thermostat over a switch",
"thermostat_over_climate": "Thermostat over another thermostat",
Any clues ?