Combine short strings in components (#135265)

This commit is contained in:
epenet
2025-01-10 11:07:51 +01:00
committed by GitHub
parent 024b9ae414
commit aa741a9207
7 changed files with 7 additions and 23 deletions

View File

@@ -220,8 +220,7 @@ def async_subscribe_internal(
mqtt_data = hass.data[DATA_MQTT]
except KeyError as exc:
raise HomeAssistantError(
f"Cannot subscribe to topic '{topic}', "
"make sure MQTT is set up correctly",
f"Cannot subscribe to topic '{topic}', make sure MQTT is set up correctly",
translation_key="mqtt_not_setup_cannot_subscribe",
translation_domain=DOMAIN,
translation_placeholders={"topic": topic},