Skip to content

Commit

Permalink
Merge pull request #16 from gjohansson-ST/value-template-strings
Browse files Browse the repository at this point in the history
Fix missing strings for value template
  • Loading branch information
gjohansson-ST committed Jul 26, 2024
2 parents a2f6c91 + c43bf8c commit 8ff9668
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
12 changes: 8 additions & 4 deletions custom_components/attribute_as_sensor/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"icon": "Icon",
"device_class": "Device Class",
"state_class": "State Class",
"unit_of_measurement": "Unit of Measurement"
"unit_of_measurement": "Unit of Measurement",
"value_template": "Value template"
},
"data_description": {
"attribute": "Select the attribute that you would like to use as a sensor.",
"unit_of_measurement": "Select a pre-defined unit of measurement or customize your own."
"unit_of_measurement": "Select a pre-defined unit of measurement or customize your own.",
"value_template": "Define a template to extract the value from the attribute."
}
}
}
Expand All @@ -31,10 +33,12 @@
"icon": "[%key:component::attribute_as_sensor::config::step::attr::data::icon%]",
"device_class": "[%key:component::attribute_as_sensor::config::step::attr::data::device_class%]",
"state_class": "[%key:component::attribute_as_sensor::config::step::attr::data::state_class%]",
"unit_of_measurement": "[%key:component::attribute_as_sensor::config::step::attr::data::unit_of_measurement%]"
"unit_of_measurement": "[%key:component::attribute_as_sensor::config::step::attr::data::unit_of_measurement%]",
"value_template": "[%key:component::attribute_as_sensor::config::step::attr::data::value_template%]"
},
"data_description": {
"unit_of_measurement": "[%key:component::attribute_as_sensor::config::step::attr::data_description::unit_of_measurement%]"
"unit_of_measurement": "[%key:component::attribute_as_sensor::config::step::attr::data_description::unit_of_measurement%]",
"value_template": "[%key:component::attribute_as_sensor::config::step::attr::data_description::value_template%]"
}
}
}
Expand Down
12 changes: 8 additions & 4 deletions custom_components/attribute_as_sensor/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"icon": "Icon",
"device_class": "Device Class",
"state_class": "State Class",
"unit_of_measurement": "Unit of Measurement"
"unit_of_measurement": "Unit of Measurement",
"value_template": "Value template"
},
"data_description": {
"attribute": "Select the attribute that you would like to use as a sensor.",
"unit_of_measurement": "Select a pre-defined unit of measurement or customize your own."
"unit_of_measurement": "Select a pre-defined unit of measurement or customize your own.",
"value_template": "Define a template to extract the value from the attribute."
}
}
}
Expand All @@ -31,10 +33,12 @@
"icon": "Icon",
"device_class": "Device Class",
"state_class": "State Class",
"unit_of_measurement": "Unit of Measurement"
"unit_of_measurement": "Unit of Measurement",
"value_template": "Value template"
},
"data_description": {
"unit_of_measurement": "Select a pre-defined unit of measurement or customize your own."
"unit_of_measurement": "Select a pre-defined unit of measurement or customize your own.",
"value_template": "Define a template to extract the value from the attribute."
}
}
}
Expand Down
12 changes: 8 additions & 4 deletions custom_components/attribute_as_sensor/translations/se.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"icon": "Ikon",
"device_class": "Enhetsklass",
"state_class": "Tillståndsklass",
"unit_of_measurement": "Måttenhet"
"unit_of_measurement": "Måttenhet",
"value_template": "Värdemall"
},
"data_description": {
"attribute": "Välj det attribut som du vill ha som sensor.",
"unit_of_measurement": "Välj en måttenhet som är fördefinierad eller skapa din egen."
"unit_of_measurement": "Välj en måttenhet som är fördefinierad eller skapa din egen.",
"value_template": "En mall för att återge sensorns värde baserat på filens innehåll."
}
}
}
Expand All @@ -31,10 +33,12 @@
"icon": "Ikon",
"device_class": "Enhetsklass",
"state_class": "Tillståndsklass",
"unit_of_measurement": "Måttenhet"
"unit_of_measurement": "Måttenhet",
"value_template": "Värdemall"
},
"data_description": {
"unit_of_measurement": "Välj en måttenhet som är fördefinierad eller skapa din egen."
"unit_of_measurement": "Välj en måttenhet som är fördefinierad eller skapa din egen.",
"value_template": "En mall för att återge sensorns värde baserat på filens innehåll."
}
}
}
Expand Down

0 comments on commit 8ff9668

Please sign in to comment.