diff --git a/src/dialogs/more-info/ha-more-info-settings.ts b/src/dialogs/more-info/ha-more-info-settings.ts index 0a25398a0a..d48dda54a7 100644 --- a/src/dialogs/more-info/ha-more-info-settings.ts +++ b/src/dialogs/more-info/ha-more-info-settings.ts @@ -70,9 +70,7 @@ export class HaMoreInfoSettings extends LitElement { if (!this.entry) { return; } - if ( - !Object.keys(PLATFORMS_WITH_SETTINGS_TAB).includes(this.entry.platform) - ) { + if (!(this.entry.platform in PLATFORMS_WITH_SETTINGS_TAB)) { this._settingsElementTag = "entity-registry-settings"; return; } diff --git a/src/onboarding/onboarding-restore-backup.ts b/src/onboarding/onboarding-restore-backup.ts index aa14347449..c9d1481817 100644 --- a/src/onboarding/onboarding-restore-backup.ts +++ b/src/onboarding/onboarding-restore-backup.ts @@ -209,9 +209,7 @@ class OnboardingRestoreBackup extends LitElement { } if (this._cloudStatus?.logged_in && !this._backupId) { - this._backup = backups.find(({ agents }) => - Object.keys(agents).includes(CLOUD_AGENT) - ); + this._backup = backups.find(({ agents }) => CLOUD_AGENT in agents); if (!this._backup) { this._view = "empty_cloud"; diff --git a/src/panels/config/integrations/ha-config-integration-page.ts b/src/panels/config/integrations/ha-config-integration-page.ts index d302cb1a5e..e9e4968318 100644 --- a/src/panels/config/integrations/ha-config-integration-page.ts +++ b/src/panels/config/integrations/ha-config-integration-page.ts @@ -442,9 +442,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) { : nothing} ${this._manifest?.is_built_in && this._manifest.quality_scale && - Object.keys(QUALITY_SCALE_MAP).includes( - this._manifest.quality_scale - ) + this._manifest.quality_scale in QUALITY_SCALE_MAP ? html`