Add "subscribed to log" message on Z-Wave JS log subscription (#9062)

This commit is contained in:
Charles Garwood 2021-05-01 08:31:59 -04:00 committed by GitHub
parent 00d46424a3
commit 7b8cb16c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -50,6 +50,11 @@ class ZWaveJSLogs extends SubscribeMixin(LitElement) {
} else { } else {
this._textarea!.value += `${log.message}\n`; this._textarea!.value += `${log.message}\n`;
} }
}).then((unsub) => {
this._textarea!.value += `${this.hass.localize(
"ui.panel.config.zwave_js.logs.subscribed_to_logs"
)}\n`;
return unsub;
}), }),
]; ];
} }

View File

@ -2649,7 +2649,8 @@
}, },
"logs": { "logs": {
"title": "Z-Wave JS Logs", "title": "Z-Wave JS Logs",
"log_level": "Log Level" "log_level": "Log Level",
"subscribed_to_logs": "Subscribed to Z-Wave JS Log Messages..."
} }
} }
}, },