mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +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)]]"
|
hidden$="[[!scriptLoaded(hass)]]"
|
||||||
>[[localize('ui.panel.config.server_control.section.reloading.script')]]
|
>[[localize('ui.panel.config.server_control.section.reloading.script')]]
|
||||||
</ha-call-service-button>
|
</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>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
</template>
|
</template>
|
||||||
@ -200,6 +207,10 @@ class HaConfigSectionServerControl extends LocalizeMixin(PolymerElement) {
|
|||||||
return isComponentLoaded(hass, "script");
|
return isComponentLoaded(hass, "script");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sceneLoaded(hass) {
|
||||||
|
return isComponentLoaded(hass, "scene");
|
||||||
|
}
|
||||||
|
|
||||||
validateConfig() {
|
validateConfig() {
|
||||||
this.validating = true;
|
this.validating = true;
|
||||||
this.validateLog = "";
|
this.validateLog = "";
|
||||||
|
@ -620,7 +620,8 @@
|
|||||||
"core": "Reload core",
|
"core": "Reload core",
|
||||||
"group": "Reload groups",
|
"group": "Reload groups",
|
||||||
"automation": "Reload automations",
|
"automation": "Reload automations",
|
||||||
"script": "Reload scripts"
|
"script": "Reload scripts",
|
||||||
|
"scene": "Reload scenes"
|
||||||
},
|
},
|
||||||
"server_management": {
|
"server_management": {
|
||||||
"heading": "Server management",
|
"heading": "Server management",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user