From dfbe32018a1ee6e84f584117f19a0e1ee30e8cc7 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 20 Feb 2023 20:32:13 +0100 Subject: [PATCH] Add reload all service to quick bar and dev tools (#15512) --- src/dialogs/quick-bar/ha-quick-bar.ts | 12 ++++++++++++ .../yaml_configuration/developer-yaml-config.ts | 10 ++++++++++ src/translations/en.json | 2 ++ 3 files changed, 24 insertions(+) diff --git a/src/dialogs/quick-bar/ha-quick-bar.ts b/src/dialogs/quick-bar/ha-quick-bar.ts index aeb6520cf4..2b86ca4351 100644 --- a/src/dialogs/quick-bar/ha-quick-bar.ts +++ b/src/dialogs/quick-bar/ha-quick-bar.ts @@ -552,6 +552,18 @@ export class QuickBar extends LitElement { ), }); + // Add "homeassistant.reload_all" + commands.push({ + primaryText: this.hass.localize( + "ui.dialogs.quick-bar.commands.reload.all" + ), + action: () => this.hass.callService("homeassistant", "reload_all"), + iconPath: mdiReload, + categoryText: this.hass.localize( + "ui.dialogs.quick-bar.commands.types.reload" + ), + }); + return commands.map((command) => ({ ...command, categoryKey: "reload", diff --git a/src/panels/developer-tools/yaml_configuration/developer-yaml-config.ts b/src/panels/developer-tools/yaml_configuration/developer-yaml-config.ts index 1686b8cb8d..933d42c730 100644 --- a/src/panels/developer-tools/yaml_configuration/developer-yaml-config.ts +++ b/src/panels/developer-tools/yaml_configuration/developer-yaml-config.ts @@ -121,6 +121,16 @@ export class DeveloperYamlConfig extends LitElement { "ui.panel.developer-tools.tabs.yaml.section.reloading.introduction" )} +
+ ${this.hass.localize( + "ui.panel.developer-tools.tabs.yaml.section.reloading.all" + )} + +