mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Include QoS and retain in MQTT debug info (#5759)
This commit is contained in:
parent
c631554eb0
commit
e5abb95f5c
@ -75,16 +75,15 @@ class MQTTMessages extends LitElement {
|
||||
|
||||
private _renderSingleMessage(message): TemplateResult {
|
||||
const topic = message.topic;
|
||||
return this._showTopic
|
||||
? html`
|
||||
<ul class="message-with-topic">
|
||||
<li>Topic: <code>${topic}</code></li>
|
||||
<li>
|
||||
Payload: ${this._renderSinglePayload(message)}
|
||||
</li>
|
||||
</ul>
|
||||
`
|
||||
: this._renderSinglePayload(message);
|
||||
return html`
|
||||
<ul class="message-with-topic">
|
||||
${this._showTopic ? html` <li>Topic: <code>${topic}</code></li> ` : ""}
|
||||
<li>QoS: ${message.qos}${message.retain ? ", Retained" : ""}</li>
|
||||
<li>
|
||||
Payload: ${this._renderSinglePayload(message)}
|
||||
</li>
|
||||
</ul>
|
||||
`;
|
||||
}
|
||||
|
||||
private _renderSinglePayload(message): TemplateResult {
|
||||
|
Loading…
x
Reference in New Issue
Block a user