Add reload scene button (#3476)

This commit is contained in:
Paulus Schoutsen
2019-08-11 20:52:58 -07:00
committed by GitHub
parent 52712f65c2
commit 204bd803bf
2 changed files with 13 additions and 1 deletions
@@ -128,6 +128,13 @@ class HaConfigSectionServerControl extends LocalizeMixin(PolymerElement) {
hidden$="[[!scriptLoaded(hass)]]"
>[[localize('ui.panel.config.server_control.section.reloading.script')]]
</ha-call-service-button>
<ha-call-service-button
hass="[[hass]]"
domain="scene"
service="reload"
hidden$="[[!sceneLoaded(hass)]]"
>[[localize('ui.panel.config.server_control.section.reloading.scene')]]
</ha-call-service-button>
</div>
</ha-card>
</template>
@@ -200,6 +207,10 @@ class HaConfigSectionServerControl extends LocalizeMixin(PolymerElement) {
return isComponentLoaded(hass, "script");
}
sceneLoaded(hass) {
return isComponentLoaded(hass, "scene");
}
validateConfig() {
this.validating = true;
this.validateLog = "";
+2 -1
View File
@@ -620,7 +620,8 @@
"core": "Reload core",
"group": "Reload groups",
"automation": "Reload automations",
"script": "Reload scripts"
"script": "Reload scripts",
"scene": "Reload scenes"
},
"server_management": {
"heading": "Server management",