+
+ Permit
+ ${
+ this.showDescription
+ ? html`
+
+ `
+ : ""
+ }
+
+
+ `;
+ }
+
+ private _onHelpTap(): void {
+ this.showDescription = !this.showDescription;
+ }
+
+ private renderStyle(): TemplateResult {
+ if (!this._haStyle) {
+ this._haStyle = document.importNode(
+ (document.getElementById("ha-style")!
+ .children[0] as HTMLTemplateElement).content,
+ true
+ );
+ }
+ if (!this._ironFlex) {
+ this._ironFlex = document.importNode(
+ (document.getElementById("iron-flex")!
+ .children[0] as HTMLTemplateElement).content,
+ true
+ );
+ }
+ return html`
+ ${this._ironFlex} ${this._haStyle}
+
+ `;
+ }
+}
+
+declare global {
+ interface HTMLElementTagNameMap {
+ "zha-network": ZHANetwork;
+ }
+}
+
+customElements.define("zha-network", ZHANetwork);
diff --git a/src/translations/en.json b/src/translations/en.json
index 068a169d9c..cb2e5b6a0e 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -35,6 +35,7 @@
"updater": "Updater",
"vacuum": "Vacuum",
"weblink": "Weblink",
+ "zha": "ZHA",
"zwave": "Z-Wave"
},
"panel": {
@@ -764,6 +765,10 @@
"delete_user": "Delete user"
}
},
+ "zha": {
+ "caption": "ZHA",
+ "description": "Zigbee Home Automation network management"
+ },
"zwave": {
"caption": "Z-Wave",
"description": "Manage your Z-Wave network"
diff --git a/translations/en.json b/translations/en.json
index 935b669e1f..84c65942cf 100644
--- a/translations/en.json
+++ b/translations/en.json
@@ -514,6 +514,13 @@
"caption": "Script",
"description": "Create and edit scripts"
},
+ "zha": {
+ "caption": "ZHA",
+ "description": "Manage your Zigbee Home Automation network",
+ "network": {
+ "introduction": "Zigbee Home Automation network management"
+ }
+ },
"zwave": {
"caption": "Z-Wave",
"description": "Manage your Z-Wave network"
@@ -974,6 +981,7 @@
"switch": "Switch",
"updater": "Updater",
"weblink": "Weblink",
+ "zha": "ZHA",
"zwave": "Z-Wave",
"vacuum": "Vacuum"
},