Fix strings

This commit is contained in:
G Johansson
2025-08-16 15:57:36 +00:00
parent 519f1d9007
commit 0d4302767b

View File

@@ -14,23 +14,39 @@
"user": {
"data": {
"db_url": "Database URL",
"name": "[%key:common::config_flow::data::name%]",
"query": "Select query",
"column": "Column",
"unit_of_measurement": "Unit of measurement",
"value_template": "Value template",
"device_class": "Device class",
"state_class": "State class"
"name": "[%key:common::config_flow::data::name%]"
},
"data_description": {
"db_url": "Leave empty to use Home Assistant Recorder database",
"name": "Name that will be used for config entry and also the sensor",
"name": "Name that will be used for config entry and also the sensor"
}
},
"options": {
"data": {
"query": "Select query",
"column": "Column"
},
"data_description": {
"query": "Query to run, needs to start with 'SELECT'",
"column": "Column for returned query to present as state",
"unit_of_measurement": "The unit of measurement for the sensor (optional)",
"value_template": "Template to extract a value from the payload (optional)",
"device_class": "The type/class of the sensor to set the icon in the frontend",
"state_class": "The state class of the sensor"
"column": "Column for returned query to present as state"
},
"sections": {
"advanced_options": {
"name": "Advanced options",
"description": "Provide additional configuration to the sensor",
"data": {
"unit_of_measurement": "Unit of measurement",
"value_template": "Value template",
"device_class": "Device class",
"state_class": "State class"
},
"data_description": {
"unit_of_measurement": "The unit of measurement for the sensor (optional)",
"value_template": "Template to extract a value from the payload (optional)",
"device_class": "The type/class of the sensor to set the icon in the frontend",
"state_class": "The state class of the sensor"
}
}
}
}
}
@@ -39,24 +55,30 @@
"step": {
"init": {
"data": {
"db_url": "[%key:component::sql::config::step::user::data::db_url%]",
"name": "[%key:common::config_flow::data::name%]",
"query": "[%key:component::sql::config::step::user::data::query%]",
"column": "[%key:component::sql::config::step::user::data::column%]",
"unit_of_measurement": "[%key:component::sql::config::step::user::data::unit_of_measurement%]",
"value_template": "[%key:component::sql::config::step::user::data::value_template%]",
"device_class": "[%key:component::sql::config::step::user::data::device_class%]",
"state_class": "[%key:component::sql::config::step::user::data::state_class%]"
"query": "[%key:component::sql::config::step::options::data::query%]",
"column": "[%key:component::sql::config::step::options::data::column%]"
},
"data_description": {
"db_url": "[%key:component::sql::config::step::user::data_description::db_url%]",
"name": "[%key:component::sql::config::step::user::data_description::name%]",
"query": "[%key:component::sql::config::step::user::data_description::query%]",
"column": "[%key:component::sql::config::step::user::data_description::column%]",
"unit_of_measurement": "[%key:component::sql::config::step::user::data_description::unit_of_measurement%]",
"value_template": "[%key:component::sql::config::step::user::data_description::value_template%]",
"device_class": "[%key:component::sql::config::step::user::data_description::device_class%]",
"state_class": "[%key:component::sql::config::step::user::data_description::state_class%]"
"query": "[%key:component::sql::config::step::options::data_description::query%]",
"column": "[%key:component::sql::config::step::options::data_description::column%]"
},
"sections": {
"advanced_options": {
"name": "[%key:component::sql::config::step::options::sections::advanced_options::name%]",
"description": "[%key:component::sql::config::step::options::sections::advanced_options::name%]",
"data": {
"unit_of_measurement": "[%key:component::sql::config::step::options::sections::advanced_options::data::unit_of_measurement%]",
"value_template": "[%key:component::sql::config::step::options::sections::advanced_options::data::value_template%]",
"device_class": "[%key:component::sql::config::step::options::sections::advanced_options::data::device_class%]",
"state_class": "[%key:component::sql::config::step::options::sections::advanced_options::data::state_class%]"
},
"data_description": {
"unit_of_measurement": "[%key:component::sql::config::step::options::sections::advanced_options::data_description::unit_of_measurement%]",
"value_template": "[%key:component::sql::config::step::options::sections::advanced_options::data_description::value_template%]",
"device_class": "[%key:component::sql::config::step::options::sections::advanced_options::data_description::device_class%]",
"state_class": "[%key:component::sql::config::step::options::sections::advanced_options::data_description::state_class%]"
}
}
}
}
},