Improve labels when there no mqtt entities or triggers debug info yet (#24383)

* Improve labels when there no mqtt entities or triggers debug info yet

* Update src/panels/config/devices/device-detail/integration-elements/mqtt/dialog-mqtt-device-debug-info.ts

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Jan Bouwhuis 2025-02-25 15:11:19 +01:00 committed by GitHub
parent 8f06e70a11
commit 34b7929165
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
? this._renderEntities()
: html`
${this.hass!.localize(
"ui.dialogs.mqtt_device_debug_info.no_entities"
"ui.dialogs.mqtt_device_debug_info.no_entity_debug_info"
)}
`}
</ul>
@ -103,7 +103,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {
? this._renderTriggers()
: html`
${this.hass!.localize(
"ui.dialogs.mqtt_device_debug_info.no_triggers"
"ui.dialogs.mqtt_device_debug_info.no_trigger_debug_info"
)}
`}
</ul>

View File

@ -1760,8 +1760,8 @@
"title": "{device} debug info",
"deserialize": "Attempt to parse MQTT messages as JSON",
"entities": "Entities",
"no_entities": "No entities",
"no_triggers": "No triggers",
"no_entity_debug_info": "No entity debug info",
"no_trigger_debug_info": "No trigger debug info",
"payload_display": "Payload display",
"recent_messages": "{n} most recently received {n, plural,\n one {message}\n other {messages}\n}",
"recent_tx_messages": "{n} most recently transmitted {n, plural,\n one {message}\n other {messages}\n}",