From 85e7986b445a1e4302b773962b6479e8dca8530a Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Fri, 26 May 2023 15:52:57 +0200 Subject: [PATCH] Always show "polling for updates" switch (#16629) Co-authored-by: Bram Kragten --- .../dialog-config-entry-system-options.ts | 63 ++++++++----------- 1 file changed, 25 insertions(+), 38 deletions(-) diff --git a/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts b/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts index 284f1707a9..afd1c6f159 100644 --- a/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts +++ b/src/dialogs/config-entry-system-options/dialog-config-entry-system-options.ts @@ -86,33 +86,30 @@ class DialogConfigEntrySystemOptions extends LitElement { dialogInitialFocus > - ${this._allowUpdatePolling() - ? html` - - ${this.hass.localize( - "ui.dialogs.config_entry_system_options.enable_polling_label" - )} -

-

- ${this.hass.localize( - "ui.dialogs.config_entry_system_options.enable_polling_description", - "integration", - this.hass.localize( - `component.${this._params.entry.domain}.title` - ) || this._params.entry.domain - )} -

`} - .dir=${computeRTLDirection(this.hass)} - > - -
- ` - : ""} + + + ${this.hass.localize( + "ui.dialogs.config_entry_system_options.enable_polling_label" + )} +

+

+ ${this.hass.localize( + "ui.dialogs.config_entry_system_options.enable_polling_description", + "integration", + this.hass.localize( + `component.${this._params.entry.domain}.title` + ) || this._params.entry.domain + )} +

`} + .dir=${computeRTLDirection(this.hass)} + > + +