From d9f772f826580976e8dc8b9f2056b6e68e31b765 Mon Sep 17 00:00:00 2001 From: Misiu Date: Tue, 1 Sep 2020 13:40:35 +0200 Subject: [PATCH] add rpi_gpio to the list --- .../ha-config-server-control.ts | 34 +++++++++---------- src/translations/en.json | 3 +- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/panels/config/server_control/ha-config-server-control.ts b/src/panels/config/server_control/ha-config-server-control.ts index def3ad5492c6..9ccf1b88c083 100644 --- a/src/panels/config/server_control/ha-config-server-control.ts +++ b/src/panels/config/server_control/ha-config-server-control.ts @@ -1,27 +1,26 @@ +import "@material/mwc-button"; import "@polymer/app-layout/app-header/app-header"; import "@polymer/app-layout/app-toolbar/app-toolbar"; -import "../../../layouts/hass-tabs-subpage"; -import { configSections } from "../ha-panel-config"; +import "@polymer/paper-input/paper-input"; import { - LitElement, - property, - internalProperty, - customElement, - html, css, CSSResult, + customElement, + html, + internalProperty, + LitElement, + property, TemplateResult, } from "lit-element"; -import { HomeAssistant, Route } from "../../../types"; - -import "@material/mwc-button"; -import "@polymer/paper-input/paper-input"; import { isServiceLoaded } from "../../../common/config/is_service_loaded"; import "../../../components/buttons/ha-call-service-button"; import "../../../components/ha-card"; -import "../ha-config-section"; -import { haStyle } from "../../../resources/styles"; import { checkCoreConfig } from "../../../data/core"; +import "../../../layouts/hass-tabs-subpage"; +import { haStyle } from "../../../resources/styles"; +import { HomeAssistant, Route } from "../../../types"; +import "../ha-config-section"; +import { configSections } from "../ha-panel-config"; const reloadableDomains = [ "group", @@ -49,19 +48,20 @@ const reloadableDomains = [ "trend", "ping", "filesize", + "rpi_gpio", ]; @customElement("ha-config-server-control") export class HaConfigServerControl extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public isWide!: boolean; + @property({ type: Boolean }) public isWide!: boolean; - @property() public narrow!: boolean; + @property({ type: Boolean }) public narrow!: boolean; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; - @property() public showAdvanced!: boolean; + @property({ type: Boolean }) public showAdvanced!: boolean; @internalProperty() private _validating = false; diff --git a/src/translations/en.json b/src/translations/en.json index bb6ec74e358a..c1fdb6d1a5ea 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -852,7 +852,8 @@ "history_stats": "Reload history stats entities", "trend": "Reload trend entities", "ping": "Reload ping binary sensor entities", - "filesize": "Reload file size entities" + "filesize": "Reload file size entities", + "rpi_gpio": "Reload Raspberry Pi GPIO entities" }, "server_management": { "heading": "Server management",