mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-19 19:07:23 +00:00
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:
parent
8f06e70a11
commit
34b7929165
@ -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>
|
||||
|
@ -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}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user