Add intro to OZW log z-wave config section (#3935)

This commit is contained in:
Phi Dong 2019-10-07 00:53:37 -07:00 committed by Bram Kragten
parent 7494a49238
commit db3968399f
2 changed files with 13 additions and 3 deletions

12
src/panels/config/zwave/zwave-log.js Normal file → Executable file
View File

@ -3,6 +3,7 @@ import "@polymer/paper-checkbox/paper-checkbox";
import "@polymer/paper-input/paper-input";
import { html } from "@polymer/polymer/lib/utils/html-tag";
import { PolymerElement } from "@polymer/polymer/polymer-element";
import LocalizeMixin from "../../../mixins/localize-mixin";
import { EventsMixin } from "../../../mixins/events-mixin";
import isPwa from "../../../common/config/is_pwa";
@ -11,7 +12,7 @@ import "../../../components/ha-card";
let registeredDialog = false;
class OzwLog extends EventsMixin(PolymerElement) {
class OzwLog extends LocalizeMixin(EventsMixin(PolymerElement)) {
static get template() {
return html`
<style include="iron-flex ha-style">
@ -32,8 +33,13 @@ class OzwLog extends EventsMixin(PolymerElement) {
</style>
<ha-config-section is-wide="[[isWide]]">
<span slot="header">OZW Log</span>
<ha-card>
<span slot="header">
[[localize('ui.panel.config.zwave.ozw_log.header')]]
</span>
<span slot="introduction">
[[localize('ui.panel.config.zwave.ozw_log.introduction')]]
</span>
<ha-card class="content">
<div class="device-picker">
<paper-input label="Number of last log lines." type="number" min="0" max="1000" step="10" value="{{numLogLines}}">
</paper-input>

4
src/translations/en.json Normal file → Executable file
View File

@ -1263,6 +1263,10 @@
"header": "Z-Wave Network Management",
"introduction": "Run commands that affect the Z-Wave network. You won't get feedback on whether most commands succeeded, but you can check the OZW Log to try to find out."
},
"ozw_log": {
"header": "OZW Log",
"introduction": "View the log. 0 is the minimum (loads entire log) and 1000 is the maximum. Load will show a static log and tail will auto update with the last specified number of lines of the log."
},
"network_status": {
"network_stopped": "Z-Wave Network Stopped",
"network_starting": "Starting Z-Wave Network...",