From b04fe141ac7e3f74cb6ea4ad4d46493904e0d484 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 28 Apr 2020 23:09:20 +0200 Subject: [PATCH] Improve styling of MQTT debug info (#5626) --- src/data/mqtt.ts | 1 + .../dialog-mqtt-device-debug-info.ts | 44 +++++--- .../mqtt-discovery-payload.ts | 61 ++++++++-- .../mqtt-messages.ts | 104 ++++++++++++++---- 4 files changed, 165 insertions(+), 45 deletions(-) diff --git a/src/data/mqtt.ts b/src/data/mqtt.ts index d00f9f2415..ff3a960752 100644 --- a/src/data/mqtt.ts +++ b/src/data/mqtt.ts @@ -5,6 +5,7 @@ export interface MQTTMessage { payload: string; qos: number; retain: number; + time: string; } export interface MQTTTopicDebugInfo { diff --git a/src/dialogs/mqtt-device-debug-info-dialog/dialog-mqtt-device-debug-info.ts b/src/dialogs/mqtt-device-debug-info-dialog/dialog-mqtt-device-debug-info.ts index a825d12396..4eb09e5382 100644 --- a/src/dialogs/mqtt-device-debug-info-dialog/dialog-mqtt-device-debug-info.ts +++ b/src/dialogs/mqtt-device-debug-info-dialog/dialog-mqtt-device-debug-info.ts @@ -80,7 +80,7 @@ class DialogMQTTDeviceDebugInfo extends LitElement {

${this.hass!.localize("ui.dialogs.mqtt_device_debug_info.entities")}

-