Skip to content

Commit

Permalink
Add link to supported models in config flow (#991)
Browse files Browse the repository at this point in the history
* Add link to supported models

* Add dutch translation
  • Loading branch information
bramstroker committed Aug 13, 2022
1 parent 08de784 commit cbe2c55
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions custom_components/powercalc/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ async def async_step_lut_model(
data_schema=_create_lut_schema_model(
self.hass, self.sensor_config.get(CONF_MANUFACTURER)
),
description_placeholders={
"supported_models_link": "https://github.com/bramstroker/homeassistant-powercalc/blob/master/docs/supported_models.md"
},
errors=errors,
)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/powercalc/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
},
"lut_model": {
"title": "LUT config",
"description": "Select the device model",
"description": "Select the device model. See the [list]({supported_models_link}) of supported models for more information",
"data": {
"model": "Model ID"
}
Expand Down
4 changes: 2 additions & 2 deletions custom_components/powercalc/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"data_description": {
"confirm_autodisovered_model": "If you choose not to confirm, you can input the manufacturer and model yourself"
},
"description": "Manufacturer '({manufacturer})' and model '({model})' were automatically detected for your light",
"description": "Manufacturer '({manufacturer})' and model '({model})' were automatically detected for your light.",
"title": "LUT config"
},
"lut_manufacturer": {
Expand All @@ -100,7 +100,7 @@
"data": {
"model": "Model ID"
},
"description": "Select the device model",
"description": "Select the device model. See the [list]({supported_models_link}) of supported models for more information",
"title": "LUT config"
},
"lut_subprofile": {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/powercalc/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"data": {
"model": "Model ID"
},
"description": "Select het model",
"description": "Select het model. Zie de [lijst]({supported_models_link}) van ondersteunde verlichting voor meer informatie",
"title": "LUT configuratie"
},
"lut_subprofile": {
Expand Down

0 comments on commit cbe2c55

Please sign in to comment.