Skip to content

Commit fe07e9c

Browse files
jbouwhabmantis
andauthored
Move out MQTT translation strings (home-assistant#154406)
Co-authored-by: Abílio Costa <[email protected]>
1 parent afeaf24 commit fe07e9c

File tree

2 files changed

+69
-66
lines changed

2 files changed

+69
-66
lines changed

homeassistant/components/mqtt/config_flow.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@
479479

480480
INTEGRATION_URL = f"{USER_DOCUMENTATION_URL}integrations/{DOMAIN}/"
481481
TEMPLATING_URL = f"{USER_DOCUMENTATION_URL}docs/configuration/templating/"
482+
COMMAND_TEMPLATING_URL = f"{TEMPLATING_URL}#using-command-templates-with-mqtt"
483+
VALUE_TEMPLATING_URL = f"{TEMPLATING_URL}#using-value-templates-with-mqtt"
482484
AVAILABLE_STATE_CLASSES_URL = (
483485
f"{DEVELOPER_DOCUMENTATION_URL}docs/core/entity/sensor/#available-state-classes"
484486
)
@@ -488,7 +490,8 @@
488490
)
489491

490492
TRANSLATION_DESCRIPTION_PLACEHOLDERS = {
491-
"templating_url": TEMPLATING_URL,
493+
"command_templating_url": COMMAND_TEMPLATING_URL,
494+
"value_templating_url": VALUE_TEMPLATING_URL,
492495
"available_state_classes_url": AVAILABLE_STATE_CLASSES_URL,
493496
"naming_entities_url": NAMING_ENTITIES_URL,
494497
"registry_properties_url": REGISTRY_PROPERTIES_URL,

0 commit comments

Comments
 (0)