mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Add reload scene button (#3476)
This commit is contained in:
parent
52712f65c2
commit
204bd803bf
@ -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 = "";
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user