diff --git a/gallery/src/components/demo-card.ts b/gallery/src/components/demo-card.ts index b0ae74afdc..87ae240ac4 100644 --- a/gallery/src/components/demo-card.ts +++ b/gallery/src/components/demo-card.ts @@ -11,7 +11,7 @@ export interface DemoCardConfig { @customElement("demo-card") class DemoCard extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public config!: DemoCardConfig; diff --git a/gallery/src/components/demo-cards.ts b/gallery/src/components/demo-cards.ts index 0bb36e3309..8080b4a7fc 100644 --- a/gallery/src/components/demo-cards.ts +++ b/gallery/src/components/demo-cards.ts @@ -12,7 +12,7 @@ import "../ha-demo-options"; class DemoCards extends LitElement { @property() public configs!: DemoCardConfig[]; - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @state() private _showConfig = false; diff --git a/gallery/src/components/demo-more-info.ts b/gallery/src/components/demo-more-info.ts index 5fb5fe5022..dd1b037816 100644 --- a/gallery/src/components/demo-more-info.ts +++ b/gallery/src/components/demo-more-info.ts @@ -8,7 +8,7 @@ import { HomeAssistant } from "../../../src/types"; @customElement("demo-more-info") class DemoMoreInfo extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public entityId!: string; diff --git a/gallery/src/components/demo-more-infos.ts b/gallery/src/components/demo-more-infos.ts index 5d7d928620..8a13665e43 100644 --- a/gallery/src/components/demo-more-infos.ts +++ b/gallery/src/components/demo-more-infos.ts @@ -9,7 +9,7 @@ import { HomeAssistant } from "../../../src/types"; @customElement("demo-more-infos") class DemoMoreInfos extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public entities!: []; diff --git a/gallery/src/pages/more-info/climate.ts b/gallery/src/pages/more-info/climate.ts index f6216a55b1..6af0d9a48e 100644 --- a/gallery/src/pages/more-info/climate.ts +++ b/gallery/src/pages/more-info/climate.ts @@ -92,7 +92,7 @@ const ENTITIES = [ @customElement("demo-more-info-climate") class DemoMoreInfoClimate extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/cover.ts b/gallery/src/pages/more-info/cover.ts index 65f9ba4a25..6f1f0a4e97 100644 --- a/gallery/src/pages/more-info/cover.ts +++ b/gallery/src/pages/more-info/cover.ts @@ -141,7 +141,7 @@ const ENTITIES = [ @customElement("demo-more-info-cover") class DemoMoreInfoCover extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/humidifier.ts b/gallery/src/pages/more-info/humidifier.ts index 024b4dae7a..c95b4433d2 100644 --- a/gallery/src/pages/more-info/humidifier.ts +++ b/gallery/src/pages/more-info/humidifier.ts @@ -29,7 +29,7 @@ const ENTITIES = [ @customElement("demo-more-info-humidifier") class DemoMoreInfoHumidifier extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/input-number.ts b/gallery/src/pages/more-info/input-number.ts index e070b52e8b..af8c1b5be6 100644 --- a/gallery/src/pages/more-info/input-number.ts +++ b/gallery/src/pages/more-info/input-number.ts @@ -32,7 +32,7 @@ const ENTITIES = [ @customElement("demo-more-info-input-number") class DemoMoreInfoInputNumber extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/input-text.ts b/gallery/src/pages/more-info/input-text.ts index ab2902a4fe..f82549004e 100644 --- a/gallery/src/pages/more-info/input-text.ts +++ b/gallery/src/pages/more-info/input-text.ts @@ -18,7 +18,7 @@ const ENTITIES = [ @customElement("demo-more-info-input-text") class DemoMoreInfoInputText extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/light.ts b/gallery/src/pages/more-info/light.ts index 336aeb8ca8..47aa0bf5a8 100644 --- a/gallery/src/pages/more-info/light.ts +++ b/gallery/src/pages/more-info/light.ts @@ -140,7 +140,7 @@ const ENTITIES = [ @customElement("demo-more-info-light") class DemoMoreInfoLight extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/lock.ts b/gallery/src/pages/more-info/lock.ts index 4fe7e46563..03f0fb8087 100644 --- a/gallery/src/pages/more-info/lock.ts +++ b/gallery/src/pages/more-info/lock.ts @@ -21,7 +21,7 @@ const ENTITIES = [ @customElement("demo-more-info-lock") class DemoMoreInfoLock extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/media-player.ts b/gallery/src/pages/more-info/media-player.ts index f02cc2ec5a..4df8674182 100644 --- a/gallery/src/pages/more-info/media-player.ts +++ b/gallery/src/pages/more-info/media-player.ts @@ -13,7 +13,7 @@ const ENTITIES = createMediaPlayerEntities(); @customElement("demo-more-info-media-player") class DemoMoreInfoMediaPlayer extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/number.ts b/gallery/src/pages/more-info/number.ts index c38693596a..29766c8a03 100644 --- a/gallery/src/pages/more-info/number.ts +++ b/gallery/src/pages/more-info/number.ts @@ -50,7 +50,7 @@ const ENTITIES = [ @customElement("demo-more-info-number") class DemoMoreInfoNumber extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/scene.ts b/gallery/src/pages/more-info/scene.ts index aaa1385e6b..2449c251fa 100644 --- a/gallery/src/pages/more-info/scene.ts +++ b/gallery/src/pages/more-info/scene.ts @@ -21,7 +21,7 @@ const ENTITIES = [ @customElement("demo-more-info-scene") class DemoMoreInfoScene extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/timer.ts b/gallery/src/pages/more-info/timer.ts index 404b31df03..3dad8d48e7 100644 --- a/gallery/src/pages/more-info/timer.ts +++ b/gallery/src/pages/more-info/timer.ts @@ -18,7 +18,7 @@ const ENTITIES = [ @customElement("demo-more-info-timer") class DemoMoreInfoTimer extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/update.ts b/gallery/src/pages/more-info/update.ts index 43951d4c5e..1d9056e95e 100644 --- a/gallery/src/pages/more-info/update.ts +++ b/gallery/src/pages/more-info/update.ts @@ -146,7 +146,7 @@ const ENTITIES = [ @customElement("demo-more-info-update") class DemoMoreInfoUpdate extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/vacuum.ts b/gallery/src/pages/more-info/vacuum.ts index e1a62f0a26..3282dd59d5 100644 --- a/gallery/src/pages/more-info/vacuum.ts +++ b/gallery/src/pages/more-info/vacuum.ts @@ -22,7 +22,7 @@ const ENTITIES = [ @customElement("demo-more-info-vacuum") class DemoMoreInfoVacuum extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/gallery/src/pages/more-info/water-heater.ts b/gallery/src/pages/more-info/water-heater.ts index 8210dcac55..a6f7b6f335 100644 --- a/gallery/src/pages/more-info/water-heater.ts +++ b/gallery/src/pages/more-info/water-heater.ts @@ -42,7 +42,7 @@ const ENTITIES = [ @customElement("demo-more-info-water-heater") class DemoMoreInfoWaterHeater extends LitElement { - @property() public hass!: MockHomeAssistant; + @property({ attribute: false }) public hass!: MockHomeAssistant; @query("demo-more-infos") private _demoRoot!: HTMLElement; diff --git a/hassio/src/backups/hassio-backups.ts b/hassio/src/backups/hassio-backups.ts index 943e6e6c64..f3ed9fad43 100644 --- a/hassio/src/backups/hassio-backups.ts +++ b/hassio/src/backups/hassio-backups.ts @@ -59,7 +59,7 @@ export class HassioBackups extends LitElement { @property({ attribute: false }) public supervisor!: Supervisor; - @property({ type: Object }) public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/components/entity/ha-entity-toggle.ts b/src/components/entity/ha-entity-toggle.ts index 21530a8a4c..5c4c07afc5 100644 --- a/src/components/entity/ha-entity-toggle.ts +++ b/src/components/entity/ha-entity-toggle.ts @@ -29,7 +29,7 @@ export class HaEntityToggle extends LitElement { // hass is not a property so that we only re-render on stateObj changes public hass?: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; @property() public label?: string; diff --git a/src/components/entity/state-badge.ts b/src/components/entity/state-badge.ts index 4ef0166fc9..f1f98337e9 100644 --- a/src/components/entity/state-badge.ts +++ b/src/components/entity/state-badge.ts @@ -26,7 +26,7 @@ import "../ha-state-icon"; export class StateBadge extends LitElement { public hass?: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; @property() public overrideIcon?: string; diff --git a/src/components/ha-attribute-value.ts b/src/components/ha-attribute-value.ts index 3efe39e47b..387b2612b0 100644 --- a/src/components/ha-attribute-value.ts +++ b/src/components/ha-attribute-value.ts @@ -9,7 +9,7 @@ import { HomeAssistant } from "../types"; class HaAttributeValue extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; @property() public attribute!: string; diff --git a/src/components/ha-attributes.ts b/src/components/ha-attributes.ts index d63b987a56..326866a5e2 100644 --- a/src/components/ha-attributes.ts +++ b/src/components/ha-attributes.ts @@ -19,7 +19,7 @@ import "./ha-expansion-panel"; class HaAttributes extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; @property({ attribute: "extra-filters" }) public extraFilters?: string; diff --git a/src/components/ha-button-related-filter-menu.ts b/src/components/ha-button-related-filter-menu.ts index 0225f77cab..77c7848baa 100644 --- a/src/components/ha-button-related-filter-menu.ts +++ b/src/components/ha-button-related-filter-menu.ts @@ -33,7 +33,7 @@ interface FilterValue { @customElement("ha-button-related-filter-menu") export class HaRelatedFilterButtonMenu extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public corner: Corner = "BOTTOM_START"; diff --git a/src/components/ha-dialog-date-picker.ts b/src/components/ha-dialog-date-picker.ts index b71e063ae4..63d78f3155 100644 --- a/src/components/ha-dialog-date-picker.ts +++ b/src/components/ha-dialog-date-picker.ts @@ -12,7 +12,7 @@ import "./ha-dialog"; @customElement("ha-dialog-date-picker") export class HaDialogDatePicker extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public value?: string; diff --git a/src/components/ha-form/ha-form-string.ts b/src/components/ha-form/ha-form-string.ts index ca9b7b9858..ee433e3fa1 100644 --- a/src/components/ha-form/ha-form-string.ts +++ b/src/components/ha-form/ha-form-string.ts @@ -25,7 +25,7 @@ const MASKED_FIELDS = ["password", "secret", "token"]; @customElement("ha-form-string") export class HaFormString extends LitElement implements HaFormElement { - @property() public hass?: HomeAssistant; + @property({ attribute: false }) public hass?: HomeAssistant; @property() public schema!: HaFormStringSchema; diff --git a/src/components/ha-icon-picker.ts b/src/components/ha-icon-picker.ts index 9dfa60a8d4..6a37c6d4c5 100644 --- a/src/components/ha-icon-picker.ts +++ b/src/components/ha-icon-picker.ts @@ -74,7 +74,7 @@ const rowRenderer: ComboBoxLitRenderer = (item) => @customElement("ha-icon-picker") export class HaIconPicker extends LitElement { - @property() public hass?: HomeAssistant; + @property({ attribute: false }) public hass?: HomeAssistant; @property() public value?: string; diff --git a/src/components/ha-navigation-picker.ts b/src/components/ha-navigation-picker.ts index 7758ec9882..8398d0c9aa 100644 --- a/src/components/ha-navigation-picker.ts +++ b/src/components/ha-navigation-picker.ts @@ -50,7 +50,7 @@ const createPanelNavigationItem = (hass: HomeAssistant, panel: PanelInfo) => ({ @customElement("ha-navigation-picker") export class HaNavigationPicker extends LitElement { - @property() public hass?: HomeAssistant; + @property({ attribute: false }) public hass?: HomeAssistant; @property() public label?: string; diff --git a/src/components/ha-selector/ha-selector-action.ts b/src/components/ha-selector/ha-selector-action.ts index b8a083a536..5850c912f3 100644 --- a/src/components/ha-selector/ha-selector-action.ts +++ b/src/components/ha-selector/ha-selector-action.ts @@ -7,9 +7,9 @@ import { HomeAssistant } from "../../types"; @customElement("ha-selector-action") export class HaActionSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: ActionSelector; + @property({ attribute: false }) public selector!: ActionSelector; @property() public value?: Action; diff --git a/src/components/ha-selector/ha-selector-addon.ts b/src/components/ha-selector/ha-selector-addon.ts index 91aee42777..ef61da0575 100644 --- a/src/components/ha-selector/ha-selector-addon.ts +++ b/src/components/ha-selector/ha-selector-addon.ts @@ -6,9 +6,9 @@ import "../ha-addon-picker"; @customElement("ha-selector-addon") export class HaAddonSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: AddonSelector; + @property({ attribute: false }) public selector!: AddonSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-area-filter.ts b/src/components/ha-selector/ha-selector-area-filter.ts index 7efd243a8c..460972b639 100644 --- a/src/components/ha-selector/ha-selector-area-filter.ts +++ b/src/components/ha-selector/ha-selector-area-filter.ts @@ -6,9 +6,9 @@ import "../ha-area-filter"; @customElement("ha-selector-area_filter") export class HaAreaFilterSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: AreaFilterSelector; + @property({ attribute: false }) public selector!: AreaFilterSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-area.ts b/src/components/ha-selector/ha-selector-area.ts index def6fa11a5..e746314231 100644 --- a/src/components/ha-selector/ha-selector-area.ts +++ b/src/components/ha-selector/ha-selector-area.ts @@ -21,9 +21,9 @@ import "../ha-areas-picker"; @customElement("ha-selector-area") export class HaAreaSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: AreaSelector; + @property({ attribute: false }) public selector!: AreaSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-assist-pipeline.ts b/src/components/ha-selector/ha-selector-assist-pipeline.ts index 9a00519f07..c84d037769 100644 --- a/src/components/ha-selector/ha-selector-assist-pipeline.ts +++ b/src/components/ha-selector/ha-selector-assist-pipeline.ts @@ -6,9 +6,9 @@ import "../ha-assist-pipeline-picker"; @customElement("ha-selector-assist_pipeline") export class HaAssistPipelineSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: AssistPipelineSelector; + @property({ attribute: false }) public selector!: AssistPipelineSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-backup-location.ts b/src/components/ha-selector/ha-selector-backup-location.ts index 0a98806b83..1499c642fc 100644 --- a/src/components/ha-selector/ha-selector-backup-location.ts +++ b/src/components/ha-selector/ha-selector-backup-location.ts @@ -6,9 +6,9 @@ import "../ha-mount-picker"; @customElement("ha-selector-backup_location") export class HaBackupLocationSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: BackupLocationSelector; + @property({ attribute: false }) public selector!: BackupLocationSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-boolean.ts b/src/components/ha-selector/ha-selector-boolean.ts index 0d94d6de7b..a6e0584f07 100644 --- a/src/components/ha-selector/ha-selector-boolean.ts +++ b/src/components/ha-selector/ha-selector-boolean.ts @@ -8,7 +8,7 @@ import "../ha-input-helper-text"; @customElement("ha-selector-boolean") export class HaBooleanSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Boolean }) public value = false; diff --git a/src/components/ha-selector/ha-selector-color-temp.ts b/src/components/ha-selector/ha-selector-color-temp.ts index f9017ece31..ef59e77996 100644 --- a/src/components/ha-selector/ha-selector-color-temp.ts +++ b/src/components/ha-selector/ha-selector-color-temp.ts @@ -15,9 +15,9 @@ import { @customElement("ha-selector-color_temp") export class HaColorTempSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: ColorTempSelector; + @property({ attribute: false }) public selector!: ColorTempSelector; @property() public value?: string; diff --git a/src/components/ha-selector/ha-selector-condition.ts b/src/components/ha-selector/ha-selector-condition.ts index 29fbaa49e6..17461bb973 100644 --- a/src/components/ha-selector/ha-selector-condition.ts +++ b/src/components/ha-selector/ha-selector-condition.ts @@ -7,9 +7,9 @@ import { HomeAssistant } from "../../types"; @customElement("ha-selector-condition") export class HaConditionSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: ConditionSelector; + @property({ attribute: false }) public selector!: ConditionSelector; @property() public value?: Condition; diff --git a/src/components/ha-selector/ha-selector-constant.ts b/src/components/ha-selector/ha-selector-constant.ts index 27fcc8f7f6..f05557832b 100644 --- a/src/components/ha-selector/ha-selector-constant.ts +++ b/src/components/ha-selector/ha-selector-constant.ts @@ -4,7 +4,7 @@ import { ConstantSelector } from "../../data/selector"; @customElement("ha-selector-constant") export class HaSelectorConstant extends LitElement { - @property() public selector!: ConstantSelector; + @property({ attribute: false }) public selector!: ConstantSelector; @property({ type: Boolean }) public disabled = false; diff --git a/src/components/ha-selector/ha-selector-conversation-agent.ts b/src/components/ha-selector/ha-selector-conversation-agent.ts index 14b85bfad0..8ff2d76f30 100644 --- a/src/components/ha-selector/ha-selector-conversation-agent.ts +++ b/src/components/ha-selector/ha-selector-conversation-agent.ts @@ -6,9 +6,9 @@ import "../ha-conversation-agent-picker"; @customElement("ha-selector-conversation_agent") export class HaConversationAgentSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: ConversationAgentSelector; + @property({ attribute: false }) public selector!: ConversationAgentSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-country.ts b/src/components/ha-selector/ha-selector-country.ts index 56e54a5875..85ba84d067 100644 --- a/src/components/ha-selector/ha-selector-country.ts +++ b/src/components/ha-selector/ha-selector-country.ts @@ -6,9 +6,9 @@ import "../ha-country-picker"; @customElement("ha-selector-country") export class HaCountrySelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: CountrySelector; + @property({ attribute: false }) public selector!: CountrySelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-date.ts b/src/components/ha-selector/ha-selector-date.ts index 8484e29a76..f1fa8b6bf1 100644 --- a/src/components/ha-selector/ha-selector-date.ts +++ b/src/components/ha-selector/ha-selector-date.ts @@ -6,9 +6,9 @@ import "../ha-date-input"; @customElement("ha-selector-date") export class HaDateSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: DateSelector; + @property({ attribute: false }) public selector!: DateSelector; @property() public value?: string; diff --git a/src/components/ha-selector/ha-selector-device.ts b/src/components/ha-selector/ha-selector-device.ts index ab79b2c1d1..b3ffebd4b6 100644 --- a/src/components/ha-selector/ha-selector-device.ts +++ b/src/components/ha-selector/ha-selector-device.ts @@ -21,9 +21,9 @@ import "../device/ha-devices-picker"; @customElement("ha-selector-device") export class HaDeviceSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: DeviceSelector; + @property({ attribute: false }) public selector!: DeviceSelector; @state() private _entitySources?: EntitySources; diff --git a/src/components/ha-selector/ha-selector-entity.ts b/src/components/ha-selector/ha-selector-entity.ts index 5e44ab2175..ff7b4da106 100644 --- a/src/components/ha-selector/ha-selector-entity.ts +++ b/src/components/ha-selector/ha-selector-entity.ts @@ -15,9 +15,9 @@ import "../entity/ha-entity-picker"; @customElement("ha-selector-entity") export class HaEntitySelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: EntitySelector; + @property({ attribute: false }) public selector!: EntitySelector; @state() private _entitySources?: EntitySources; diff --git a/src/components/ha-selector/ha-selector-file.ts b/src/components/ha-selector/ha-selector-file.ts index 2024d04b54..3ae286581a 100644 --- a/src/components/ha-selector/ha-selector-file.ts +++ b/src/components/ha-selector/ha-selector-file.ts @@ -10,9 +10,9 @@ import "../ha-file-upload"; @customElement("ha-selector-file") export class HaFileSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: FileSelector; + @property({ attribute: false }) public selector!: FileSelector; @property() public value?: string; diff --git a/src/components/ha-selector/ha-selector-icon.ts b/src/components/ha-selector/ha-selector-icon.ts index 1a5d10cf72..7f491a93f2 100644 --- a/src/components/ha-selector/ha-selector-icon.ts +++ b/src/components/ha-selector/ha-selector-icon.ts @@ -9,9 +9,9 @@ import "../ha-icon-picker"; @customElement("ha-selector-icon") export class HaIconSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: IconSelector; + @property({ attribute: false }) public selector!: IconSelector; @property() public value?: string; diff --git a/src/components/ha-selector/ha-selector-language.ts b/src/components/ha-selector/ha-selector-language.ts index 79b6dc69f2..a4f9727fb8 100644 --- a/src/components/ha-selector/ha-selector-language.ts +++ b/src/components/ha-selector/ha-selector-language.ts @@ -6,9 +6,9 @@ import "../ha-language-picker"; @customElement("ha-selector-language") export class HaLanguageSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: LanguageSelector; + @property({ attribute: false }) public selector!: LanguageSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-navigation.ts b/src/components/ha-selector/ha-selector-navigation.ts index e275c47d3a..a3f61fc68d 100644 --- a/src/components/ha-selector/ha-selector-navigation.ts +++ b/src/components/ha-selector/ha-selector-navigation.ts @@ -7,9 +7,9 @@ import "../ha-navigation-picker"; @customElement("ha-selector-navigation") export class HaNavigationSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: NavigationSelector; + @property({ attribute: false }) public selector!: NavigationSelector; @property() public value?: string; diff --git a/src/components/ha-selector/ha-selector-number.ts b/src/components/ha-selector/ha-selector-number.ts index 672e9f8a52..ba60452493 100644 --- a/src/components/ha-selector/ha-selector-number.ts +++ b/src/components/ha-selector/ha-selector-number.ts @@ -10,9 +10,9 @@ import "../ha-textfield"; @customElement("ha-selector-number") export class HaNumberSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: NumberSelector; + @property({ attribute: false }) public selector!: NumberSelector; @property({ type: Number }) public value?: number; diff --git a/src/components/ha-selector/ha-selector-object.ts b/src/components/ha-selector/ha-selector-object.ts index 42bc771de7..55737e3ca2 100644 --- a/src/components/ha-selector/ha-selector-object.ts +++ b/src/components/ha-selector/ha-selector-object.ts @@ -8,7 +8,7 @@ import type { HaYamlEditor } from "../ha-yaml-editor"; @customElement("ha-selector-object") export class HaObjectSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-state.ts b/src/components/ha-selector/ha-selector-state.ts index 4b16c8e8b0..f42718b3c2 100644 --- a/src/components/ha-selector/ha-selector-state.ts +++ b/src/components/ha-selector/ha-selector-state.ts @@ -7,9 +7,9 @@ import "../entity/ha-entity-state-picker"; @customElement("ha-selector-state") export class HaSelectorState extends SubscribeMixin(LitElement) { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: StateSelector; + @property({ attribute: false }) public selector!: StateSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-statistic.ts b/src/components/ha-selector/ha-selector-statistic.ts index 360075069a..078e75849e 100644 --- a/src/components/ha-selector/ha-selector-statistic.ts +++ b/src/components/ha-selector/ha-selector-statistic.ts @@ -6,9 +6,9 @@ import "../entity/ha-statistics-picker"; @customElement("ha-selector-statistic") export class HaStatisticSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: StatisticSelector; + @property({ attribute: false }) public selector!: StatisticSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-stt.ts b/src/components/ha-selector/ha-selector-stt.ts index 75549077fd..03150da3da 100644 --- a/src/components/ha-selector/ha-selector-stt.ts +++ b/src/components/ha-selector/ha-selector-stt.ts @@ -6,9 +6,9 @@ import "../ha-stt-picker"; @customElement("ha-selector-stt") export class HaSTTSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: STTSelector; + @property({ attribute: false }) public selector!: STTSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-target.ts b/src/components/ha-selector/ha-selector-target.ts index 9b649f094f..3270f8b4db 100644 --- a/src/components/ha-selector/ha-selector-target.ts +++ b/src/components/ha-selector/ha-selector-target.ts @@ -28,9 +28,9 @@ import "../ha-target-picker"; @customElement("ha-selector-target") export class HaTargetSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: TargetSelector; + @property({ attribute: false }) public selector!: TargetSelector; @property() public value?: HassServiceTarget; diff --git a/src/components/ha-selector/ha-selector-template.ts b/src/components/ha-selector/ha-selector-template.ts index 4a2f3ff31e..ae83de5ee1 100644 --- a/src/components/ha-selector/ha-selector-template.ts +++ b/src/components/ha-selector/ha-selector-template.ts @@ -7,7 +7,7 @@ import "../ha-input-helper-text"; @customElement("ha-selector-template") export class HaTemplateSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public value?: string; diff --git a/src/components/ha-selector/ha-selector-text.ts b/src/components/ha-selector/ha-selector-text.ts index 6d175017a4..89d336c102 100644 --- a/src/components/ha-selector/ha-selector-text.ts +++ b/src/components/ha-selector/ha-selector-text.ts @@ -12,7 +12,7 @@ import "../ha-textfield"; @customElement("ha-selector-text") export class HaTextSelector extends LitElement { - @property() public hass?: HomeAssistant; + @property({ attribute: false }) public hass?: HomeAssistant; @property() public value?: any; @@ -24,7 +24,7 @@ export class HaTextSelector extends LitElement { @property() public helper?: string; - @property() public selector!: StringSelector; + @property({ attribute: false }) public selector!: StringSelector; @property({ type: Boolean }) public disabled = false; diff --git a/src/components/ha-selector/ha-selector-trigger.ts b/src/components/ha-selector/ha-selector-trigger.ts index 1f9213aa91..7a31fb8e7a 100644 --- a/src/components/ha-selector/ha-selector-trigger.ts +++ b/src/components/ha-selector/ha-selector-trigger.ts @@ -7,9 +7,9 @@ import { HomeAssistant } from "../../types"; @customElement("ha-selector-trigger") export class HaTriggerSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: TriggerSelector; + @property({ attribute: false }) public selector!: TriggerSelector; @property() public value?: Trigger; diff --git a/src/components/ha-selector/ha-selector-tts-voice.ts b/src/components/ha-selector/ha-selector-tts-voice.ts index 6098ed7ebb..e5a67c6ef4 100644 --- a/src/components/ha-selector/ha-selector-tts-voice.ts +++ b/src/components/ha-selector/ha-selector-tts-voice.ts @@ -6,9 +6,9 @@ import "../ha-tts-voice-picker"; @customElement("ha-selector-tts_voice") export class HaTTSVoiceSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: TTSVoiceSelector; + @property({ attribute: false }) public selector!: TTSVoiceSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-tts.ts b/src/components/ha-selector/ha-selector-tts.ts index fbf83fb167..9111047497 100644 --- a/src/components/ha-selector/ha-selector-tts.ts +++ b/src/components/ha-selector/ha-selector-tts.ts @@ -6,9 +6,9 @@ import "../ha-tts-picker"; @customElement("ha-selector-tts") export class HaTTSSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: TTSSelector; + @property({ attribute: false }) public selector!: TTSSelector; @property() public value?: any; diff --git a/src/components/ha-selector/ha-selector-ui-action.ts b/src/components/ha-selector/ha-selector-ui-action.ts index 34c71d280d..63fe5d5bc6 100644 --- a/src/components/ha-selector/ha-selector-ui-action.ts +++ b/src/components/ha-selector/ha-selector-ui-action.ts @@ -8,9 +8,9 @@ import { HomeAssistant } from "../../types"; @customElement("ha-selector-ui_action") export class HaSelectorUiAction extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: UiActionSelector; + @property({ attribute: false }) public selector!: UiActionSelector; @property() public value?: ActionConfig; diff --git a/src/components/ha-selector/ha-selector-ui-color.ts b/src/components/ha-selector/ha-selector-ui-color.ts index c88c083f8e..291977ace0 100644 --- a/src/components/ha-selector/ha-selector-ui-color.ts +++ b/src/components/ha-selector/ha-selector-ui-color.ts @@ -7,9 +7,9 @@ import { HomeAssistant } from "../../types"; @customElement("ha-selector-ui_color") export class HaSelectorUiColor extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property() public selector!: UiColorSelector; + @property({ attribute: false }) public selector!: UiColorSelector; @property() public value?: string; diff --git a/src/components/ha-selector/ha-selector.ts b/src/components/ha-selector/ha-selector.ts index 5f68124f89..bad10c521f 100644 --- a/src/components/ha-selector/ha-selector.ts +++ b/src/components/ha-selector/ha-selector.ts @@ -59,11 +59,11 @@ const LEGACY_UI_SELECTORS = new Set(["ui-action", "ui-color"]); @customElement("ha-selector") export class HaSelector extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public name?: string; - @property() public selector!: Selector; + @property({ attribute: false }) public selector!: Selector; @property() public value?: any; diff --git a/src/components/ha-sidebar.ts b/src/components/ha-sidebar.ts index 352f0130f9..fef5cb1ed2 100644 --- a/src/components/ha-sidebar.ts +++ b/src/components/ha-sidebar.ts @@ -191,7 +191,7 @@ class HaSidebar extends SubscribeMixin(LitElement) { @property({ type: Boolean, reflect: true }) public narrow!: boolean; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public alwaysExpand = false; diff --git a/src/components/media-player/ha-browse-media-tts.ts b/src/components/media-player/ha-browse-media-tts.ts index cb10b053c4..d93ba0c9b4 100644 --- a/src/components/media-player/ha-browse-media-tts.ts +++ b/src/components/media-player/ha-browse-media-tts.ts @@ -31,7 +31,7 @@ declare global { @customElement("ha-browse-media-tts") class BrowseMediaTTS extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public item!: MediaPlayerItem; diff --git a/src/dialogs/more-info/components/lights/ha-favorite-color-button.ts b/src/dialogs/more-info/components/lights/ha-favorite-color-button.ts index 12be00c662..1da77121e2 100644 --- a/src/dialogs/more-info/components/lights/ha-favorite-color-button.ts +++ b/src/dialogs/more-info/components/lights/ha-favorite-color-button.ts @@ -24,7 +24,7 @@ class MoreInfoViewLightColorPicker extends LitElement { @property({ type: Boolean, reflect: true }) disabled = false; - @property() stateObj?: LightEntity; + @property({ attribute: false }) public stateObj?: LightEntity; @property() color!: LightColor; diff --git a/src/dialogs/more-info/controls/more-info-climate.ts b/src/dialogs/more-info/controls/more-info-climate.ts index b409270629..ad740ad588 100644 --- a/src/dialogs/more-info/controls/more-info-climate.ts +++ b/src/dialogs/more-info/controls/more-info-climate.ts @@ -38,7 +38,7 @@ type MainControl = "temperature" | "humidity"; class MoreInfoClimate extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: ClimateEntity; + @property({ attribute: false }) public stateObj?: ClimateEntity; @state() private _mainControl: MainControl = "temperature"; diff --git a/src/dialogs/more-info/controls/more-info-counter.ts b/src/dialogs/more-info/controls/more-info-counter.ts index c1132f8172..60e8c733e6 100644 --- a/src/dialogs/more-info/controls/more-info-counter.ts +++ b/src/dialogs/more-info/controls/more-info-counter.ts @@ -9,7 +9,7 @@ import { HomeAssistant } from "../../../types"; class MoreInfoCounter extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-default.ts b/src/dialogs/more-info/controls/more-info-default.ts index a8e14bdecb..c7993fa47f 100644 --- a/src/dialogs/more-info/controls/more-info-default.ts +++ b/src/dialogs/more-info/controls/more-info-default.ts @@ -8,7 +8,7 @@ import { HomeAssistant } from "../../../types"; class MoreInfoDefault extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-group.ts b/src/dialogs/more-info/controls/more-info-group.ts index dd634a9927..b6cfc47d23 100644 --- a/src/dialogs/more-info/controls/more-info-group.ts +++ b/src/dialogs/more-info/controls/more-info-group.ts @@ -21,7 +21,7 @@ import { class MoreInfoGroup extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: GroupEntity; + @property({ attribute: false }) public stateObj?: GroupEntity; @state() private _groupDomainStateObj?: HassEntity; diff --git a/src/dialogs/more-info/controls/more-info-humidifier.ts b/src/dialogs/more-info/controls/more-info-humidifier.ts index 3799d557f9..367a9fe364 100644 --- a/src/dialogs/more-info/controls/more-info-humidifier.ts +++ b/src/dialogs/more-info/controls/more-info-humidifier.ts @@ -26,7 +26,7 @@ import { moreInfoControlStyle } from "../components/more-info-control-style"; class MoreInfoHumidifier extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HumidifierEntity; + @property({ attribute: false }) public stateObj?: HumidifierEntity; @state() public _mode?: string; diff --git a/src/dialogs/more-info/controls/more-info-lawn_mower.ts b/src/dialogs/more-info/controls/more-info-lawn_mower.ts index 05a92ce1ce..349f5e3b3a 100644 --- a/src/dialogs/more-info/controls/more-info-lawn_mower.ts +++ b/src/dialogs/more-info/controls/more-info-lawn_mower.ts @@ -54,7 +54,7 @@ const LAWN_MOWER_COMMANDS: LawnMowerCommand[] = [ class MoreInfoLawnMower extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: LawnMowerEntity; + @property({ attribute: false }) public stateObj?: LawnMowerEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-person.ts b/src/dialogs/more-info/controls/more-info-person.ts index c5d21ad097..bba6427c8f 100644 --- a/src/dialogs/more-info/controls/more-info-person.ts +++ b/src/dialogs/more-info/controls/more-info-person.ts @@ -13,7 +13,7 @@ import { HomeAssistant } from "../../../types"; class MoreInfoPerson extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; private _entityArray = memoizeOne((entityId: string) => [entityId]); diff --git a/src/dialogs/more-info/controls/more-info-remote.ts b/src/dialogs/more-info/controls/more-info-remote.ts index 918ebd3a71..072741fd2a 100644 --- a/src/dialogs/more-info/controls/more-info-remote.ts +++ b/src/dialogs/more-info/controls/more-info-remote.ts @@ -14,7 +14,7 @@ const filterExtraAttributes = "activity_list,current_activity"; class MoreInfoRemote extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: RemoteEntity; + @property({ attribute: false }) public stateObj?: RemoteEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-script.ts b/src/dialogs/more-info/controls/more-info-script.ts index 1d9ed6fb0c..c53da01be1 100644 --- a/src/dialogs/more-info/controls/more-info-script.ts +++ b/src/dialogs/more-info/controls/more-info-script.ts @@ -8,7 +8,7 @@ import { HomeAssistant } from "../../../types"; class MoreInfoScript extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-sun.ts b/src/dialogs/more-info/controls/more-info-sun.ts index 341da55268..fb3da7108c 100644 --- a/src/dialogs/more-info/controls/more-info-sun.ts +++ b/src/dialogs/more-info/controls/more-info-sun.ts @@ -9,7 +9,7 @@ import { HomeAssistant } from "../../../types"; class MoreInfoSun extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-timer.ts b/src/dialogs/more-info/controls/more-info-timer.ts index cba66d5ed7..5af7aca7b6 100644 --- a/src/dialogs/more-info/controls/more-info-timer.ts +++ b/src/dialogs/more-info/controls/more-info-timer.ts @@ -9,7 +9,7 @@ import { HomeAssistant } from "../../../types"; class MoreInfoTimer extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: TimerEntity; + @property({ attribute: false }) public stateObj?: TimerEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-vacuum.ts b/src/dialogs/more-info/controls/more-info-vacuum.ts index 4076935d9e..c5b7e9768c 100644 --- a/src/dialogs/more-info/controls/more-info-vacuum.ts +++ b/src/dialogs/more-info/controls/more-info-vacuum.ts @@ -100,7 +100,7 @@ const VACUUM_COMMANDS: VacuumCommand[] = [ class MoreInfoVacuum extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: VacuumEntity; + @property({ attribute: false }) public stateObj?: VacuumEntity; protected render() { if (!this.hass || !this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-water_heater.ts b/src/dialogs/more-info/controls/more-info-water_heater.ts index 71e1ffc5f5..4a5f1d2f04 100644 --- a/src/dialogs/more-info/controls/more-info-water_heater.ts +++ b/src/dialogs/more-info/controls/more-info-water_heater.ts @@ -21,7 +21,7 @@ import { moreInfoControlStyle } from "../components/more-info-control-style"; class MoreInfoWaterHeater extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: WaterHeaterEntity; + @property({ attribute: false }) public stateObj?: WaterHeaterEntity; protected render() { if (!this.stateObj) { diff --git a/src/dialogs/more-info/controls/more-info-weather.ts b/src/dialogs/more-info/controls/more-info-weather.ts index 2854d90110..cb2710819b 100644 --- a/src/dialogs/more-info/controls/more-info-weather.ts +++ b/src/dialogs/more-info/controls/more-info-weather.ts @@ -37,7 +37,7 @@ import { HomeAssistant } from "../../../types"; class MoreInfoWeather extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj?: WeatherEntity; + @property({ attribute: false }) public stateObj?: WeatherEntity; @state() private _forecastEvent?: ForecastEvent; diff --git a/src/layouts/hass-router-page.ts b/src/layouts/hass-router-page.ts index cf3aca4f78..3751b94341 100644 --- a/src/layouts/hass-router-page.ts +++ b/src/layouts/hass-router-page.ts @@ -46,7 +46,7 @@ export interface RouterOptions { const LOADING_SCREEN_THRESHOLD = 400; // ms export class HassRouterPage extends ReactiveElement { - @property() public route?: Route; + @property({ attribute: false }) public route?: Route; protected routerOptions!: RouterOptions; diff --git a/src/layouts/hass-tabs-subpage-data-table.ts b/src/layouts/hass-tabs-subpage-data-table.ts index 7d3e90d623..b21c627ad8 100644 --- a/src/layouts/hass-tabs-subpage-data-table.ts +++ b/src/layouts/hass-tabs-subpage-data-table.ts @@ -130,7 +130,7 @@ export class HaTabsSubpageDataTable extends LitElement { */ @property({ type: Boolean }) public empty = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; /** * Array of tabs to show on the page. diff --git a/src/layouts/home-assistant-main.ts b/src/layouts/home-assistant-main.ts index 956c4c8eed..7661b51777 100644 --- a/src/layouts/home-assistant-main.ts +++ b/src/layouts/home-assistant-main.ts @@ -38,7 +38,7 @@ interface EditSideBarEvent { export class HomeAssistantMain extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public route?: Route; + @property({ attribute: false }) public route?: Route; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/panels/calendar/ha-recurrence-rule-editor.ts b/src/panels/calendar/ha-recurrence-rule-editor.ts index 7a131e23d8..3d1dd412f3 100644 --- a/src/panels/calendar/ha-recurrence-rule-editor.ts +++ b/src/panels/calendar/ha-recurrence-rule-editor.ts @@ -33,7 +33,7 @@ import { @customElement("ha-recurrence-rule-editor") export class RecurrenceRuleEditor extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Boolean }) public disabled = false; diff --git a/src/panels/config/application_credentials/ha-config-application-credentials.ts b/src/panels/config/application_credentials/ha-config-application-credentials.ts index 6752532e29..274d17883a 100644 --- a/src/panels/config/application_credentials/ha-config-application-credentials.ts +++ b/src/panels/config/application_credentials/ha-config-application-credentials.ts @@ -45,7 +45,7 @@ export class HaConfigApplicationCredentials extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _selected: string[] = []; diff --git a/src/panels/config/areas/ha-config-areas-dashboard.ts b/src/panels/config/areas/ha-config-areas-dashboard.ts index 62c3a04743..0d294156b1 100644 --- a/src/panels/config/areas/ha-config-areas-dashboard.ts +++ b/src/panels/config/areas/ha-config-areas-dashboard.ts @@ -40,7 +40,7 @@ export class HaConfigAreasDashboard extends SubscribeMixin(LitElement) { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _areas!: AreaRegistryEntry[]; diff --git a/src/panels/config/automation/blueprint-automation-editor.ts b/src/panels/config/automation/blueprint-automation-editor.ts index 9f9e6c4e08..c2eedf5136 100644 --- a/src/panels/config/automation/blueprint-automation-editor.ts +++ b/src/panels/config/automation/blueprint-automation-editor.ts @@ -32,7 +32,7 @@ export class HaBlueprintAutomationEditor extends LitElement { @property() public config!: BlueprintAutomationConfig; - @property() public stateObj?: HassEntity; + @property({ attribute: false }) public stateObj?: HassEntity; @state() private _blueprints?: Blueprints; diff --git a/src/panels/config/automation/ha-automation-editor.ts b/src/panels/config/automation/ha-automation-editor.ts index a4f6f2ef3e..f179e97168 100644 --- a/src/panels/config/automation/ha-automation-editor.ts +++ b/src/panels/config/automation/ha-automation-editor.ts @@ -93,7 +93,7 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _config?: AutomationConfig; diff --git a/src/panels/config/automation/ha-automation-picker.ts b/src/panels/config/automation/ha-automation-picker.ts index 7fe54ec1f8..5b37f52b6d 100644 --- a/src/panels/config/automation/ha-automation-picker.ts +++ b/src/panels/config/automation/ha-automation-picker.ts @@ -77,7 +77,7 @@ class HaAutomationPicker extends LitElement { @property({ type: Boolean }) public narrow!: boolean; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property() public automations!: AutomationEntity[]; diff --git a/src/panels/config/cloud/ha-config-cloud.ts b/src/panels/config/cloud/ha-config-cloud.ts index 53d70fb7b9..fd02981c91 100644 --- a/src/panels/config/cloud/ha-config-cloud.ts +++ b/src/panels/config/cloud/ha-config-cloud.ts @@ -20,7 +20,7 @@ class HaConfigCloud extends HassRouterPage { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property() public cloudStatus!: CloudStatus; diff --git a/src/panels/config/devices/ha-config-devices-dashboard.ts b/src/panels/config/devices/ha-config-devices-dashboard.ts index 400c0baf31..a3fbf080c5 100644 --- a/src/panels/config/devices/ha-config-devices-dashboard.ts +++ b/src/panels/config/devices/ha-config-devices-dashboard.ts @@ -74,7 +74,7 @@ export class HaConfigDeviceDashboard extends LitElement { @property() public manifests!: IntegrationManifest[]; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _searchParms = new URLSearchParams(window.location.search); diff --git a/src/panels/config/ha-panel-config.ts b/src/panels/config/ha-panel-config.ts index d8a26d5296..e6aacf6fd5 100644 --- a/src/panels/config/ha-panel-config.ts +++ b/src/panels/config/ha-panel-config.ts @@ -362,7 +362,7 @@ class HaPanelConfig extends SubscribeMixin(HassRouterPage) { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; private _entitiesContext = new ContextProvider(this, { context: fullEntitiesContext, diff --git a/src/panels/config/helpers/ha-config-helpers.ts b/src/panels/config/helpers/ha-config-helpers.ts index f755092c7f..8163787d4e 100644 --- a/src/panels/config/helpers/ha-config-helpers.ts +++ b/src/panels/config/helpers/ha-config-helpers.ts @@ -85,7 +85,7 @@ export class HaConfigHelpers extends SubscribeMixin(LitElement) { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _stateItems: HassEntity[] = []; diff --git a/src/panels/config/integrations/ha-config-integrations-dashboard.ts b/src/panels/config/integrations/ha-config-integrations-dashboard.ts index ded9e80b98..468a776756 100644 --- a/src/panels/config/integrations/ha-config-integrations-dashboard.ts +++ b/src/panels/config/integrations/ha-config-integrations-dashboard.ts @@ -98,7 +98,7 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) { @property({ type: Boolean }) public showAdvanced = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ attribute: false }) public configEntries?: ConfigEntryExtended[]; diff --git a/src/panels/config/integrations/integration-panels/zha/zha-add-group-page.ts b/src/panels/config/integrations/integration-panels/zha/zha-add-group-page.ts index 2b13eb3d08..918e020226 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-add-group-page.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-add-group-page.ts @@ -20,7 +20,7 @@ import type { ZHADeviceEndpointDataTable } from "./zha-device-endpoint-data-tabl @customElement("zha-add-group-page") export class ZHAAddGroupPage extends LitElement { - @property({ type: Object }) public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts b/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts index 55a08d0731..73c797fcb1 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-config-dashboard.ts @@ -68,9 +68,9 @@ export const zhaTabs: PageNavigation[] = [ @customElement("zha-config-dashboard") class ZHAConfigDashboard extends LitElement { - @property({ type: Object }) public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property({ type: Object }) public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts b/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts index fbadb2ec06..78a4871dd5 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts @@ -25,7 +25,7 @@ export interface DeviceEndpointRowData extends DataTableRowData { @customElement("zha-device-endpoint-data-table") export class ZHADeviceEndpointDataTable extends LitElement { - @property({ type: Object }) public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Boolean }) public narrow = false; diff --git a/src/panels/config/integrations/integration-panels/zha/zha-group-page.ts b/src/panels/config/integrations/integration-panels/zha/zha-group-page.ts index f765839206..7a694d7dad 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-group-page.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-group-page.ts @@ -33,7 +33,7 @@ import type { ZHADeviceEndpointDataTable } from "./zha-device-endpoint-data-tabl @customElement("zha-group-page") export class ZHAGroupPage extends LitElement { - @property({ type: Object }) public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Object }) public group?: ZHAGroup; diff --git a/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts b/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts index 7a87fda591..56834b7cac 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-groups-dashboard.ts @@ -34,7 +34,7 @@ export interface GroupRowData extends ZHAGroup { export class ZHAGroupsDashboard extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property({ type: Object }) public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts index 4805c40a71..baf9f8343c 100644 --- a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts +++ b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-config-dashboard.ts @@ -57,9 +57,9 @@ import { configTabs } from "./zwave_js-config-router"; @customElement("zwave_js-config-dashboard") class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) { - @property({ type: Object }) public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; - @property({ type: Object }) public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-logs.ts b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-logs.ts index 23deecbaf8..8d51bee76c 100644 --- a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-logs.ts +++ b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-logs.ts @@ -23,7 +23,7 @@ import { configTabs } from "./zwave_js-config-router"; class ZWaveJSLogs extends SubscribeMixin(LitElement) { @property({ attribute: false }) public hass!: HomeAssistant; - @property({ type: Object }) public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-provisioned.ts b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-provisioned.ts index e19478cfed..e050a91d70 100644 --- a/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-provisioned.ts +++ b/src/panels/config/integrations/integration-panels/zwave_js/zwave_js-provisioned.ts @@ -18,7 +18,7 @@ import { configTabs } from "./zwave_js-config-router"; class ZWaveJSProvisioned extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property({ type: Object }) public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public narrow!: boolean; diff --git a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts index 24a48a6c68..ad04b2b368 100644 --- a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts +++ b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts @@ -60,7 +60,7 @@ export class HaConfigLovelaceDashboards extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _dashboards: LovelaceDashboard[] = []; diff --git a/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts b/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts index 5dbab9dfed..9574f14fce 100644 --- a/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts +++ b/src/panels/config/lovelace/resources/ha-config-lovelace-resources.ts @@ -45,7 +45,7 @@ export class HaConfigLovelaceRescources extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _resources: LovelaceResource[] = []; diff --git a/src/panels/config/person/ha-config-person.ts b/src/panels/config/person/ha-config-person.ts index 08ffbddfa5..27e065e54a 100644 --- a/src/panels/config/person/ha-config-person.ts +++ b/src/panels/config/person/ha-config-person.ts @@ -39,7 +39,7 @@ export class HaConfigPerson extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _storageItems?: Person[]; diff --git a/src/panels/config/scene/ha-scene-dashboard.ts b/src/panels/config/scene/ha-scene-dashboard.ts index e6bc9476f1..cb9861932c 100644 --- a/src/panels/config/scene/ha-scene-dashboard.ts +++ b/src/panels/config/scene/ha-scene-dashboard.ts @@ -68,7 +68,7 @@ class HaSceneDashboard extends LitElement { @property({ type: Boolean }) public isWide = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property() public scenes!: SceneEntity[]; diff --git a/src/panels/config/scene/ha-scene-editor.ts b/src/panels/config/scene/ha-scene-editor.ts index 5814ac7fd6..8af1d5fba5 100644 --- a/src/panels/config/scene/ha-scene-editor.ts +++ b/src/panels/config/scene/ha-scene-editor.ts @@ -91,7 +91,7 @@ export class HaSceneEditor extends SubscribeMixin( @property({ type: Boolean }) public isWide = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property() public sceneId: string | null = null; diff --git a/src/panels/config/script/ha-script-picker.ts b/src/panels/config/script/ha-script-picker.ts index 82e369b9e0..f4e671eb91 100644 --- a/src/panels/config/script/ha-script-picker.ts +++ b/src/panels/config/script/ha-script-picker.ts @@ -74,7 +74,7 @@ class HaScriptPicker extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ attribute: false }) public entityRegistry!: EntityRegistryEntry[]; diff --git a/src/panels/config/tags/ha-config-tags.ts b/src/panels/config/tags/ha-config-tags.ts index 493bdf4024..064c82179c 100644 --- a/src/panels/config/tags/ha-config-tags.ts +++ b/src/panels/config/tags/ha-config-tags.ts @@ -48,7 +48,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _tags: Tag[] = []; diff --git a/src/panels/config/voice-assistants/expose/expose-assistant-icon.ts b/src/panels/config/voice-assistants/expose/expose-assistant-icon.ts index 56a3845288..f40aeea9e9 100644 --- a/src/panels/config/voice-assistants/expose/expose-assistant-icon.ts +++ b/src/panels/config/voice-assistants/expose/expose-assistant-icon.ts @@ -10,7 +10,7 @@ import "../../../../components/ha-svg-icon"; @customElement("voice-assistants-expose-assistant-icon") export class VoiceAssistantExposeAssistantIcon extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Boolean }) public unsupported!: boolean; diff --git a/src/panels/config/voice-assistants/ha-config-voice-assistants-assistants.ts b/src/panels/config/voice-assistants/ha-config-voice-assistants-assistants.ts index aee5e92afb..b1873d3b3c 100644 --- a/src/panels/config/voice-assistants/ha-config-voice-assistants-assistants.ts +++ b/src/panels/config/voice-assistants/ha-config-voice-assistants-assistants.ts @@ -29,7 +29,7 @@ export class HaConfigVoiceAssistantsAssistants extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; protected render() { if (!this.hass) { diff --git a/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts b/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts index bd5f1ec037..f86a0863f6 100644 --- a/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts +++ b/src/panels/config/voice-assistants/ha-config-voice-assistants-expose.ts @@ -64,7 +64,7 @@ import { showVoiceSettingsDialog } from "./show-dialog-voice-settings"; @customElement("ha-config-voice-assistants-expose") export class VoiceAssistantsExpose extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ attribute: false }) public cloudStatus?: CloudStatus; diff --git a/src/panels/config/zone/ha-config-zone.ts b/src/panels/config/zone/ha-config-zone.ts index 6869293fb8..bf56ed7ce5 100644 --- a/src/panels/config/zone/ha-config-zone.ts +++ b/src/panels/config/zone/ha-config-zone.ts @@ -56,7 +56,7 @@ export class HaConfigZone extends SubscribeMixin(LitElement) { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() private _storageItems?: Zone[]; diff --git a/src/panels/custom/ha-panel-custom.ts b/src/panels/custom/ha-panel-custom.ts index 975c5cff76..04a4a406ba 100644 --- a/src/panels/custom/ha-panel-custom.ts +++ b/src/panels/custom/ha-panel-custom.ts @@ -25,7 +25,7 @@ export class HaPanelCustom extends ReactiveElement { @property({ type: Boolean }) public narrow = false; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property() public panel!: CustomPanelInfo; diff --git a/src/panels/developer-tools/ha-panel-developer-tools.ts b/src/panels/developer-tools/ha-panel-developer-tools.ts index 12fe04725a..97d5b43d88 100644 --- a/src/panels/developer-tools/ha-panel-developer-tools.ts +++ b/src/panels/developer-tools/ha-panel-developer-tools.ts @@ -17,7 +17,7 @@ import "./developer-tools-router"; class PanelDeveloperTools extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @property({ type: Boolean }) public narrow = false; diff --git a/src/panels/developer-tools/template/developer-tools-template.ts b/src/panels/developer-tools/template/developer-tools-template.ts index 0f6abb854e..7732ad7760 100644 --- a/src/panels/developer-tools/template/developer-tools-template.ts +++ b/src/panels/developer-tools/template/developer-tools-template.ts @@ -39,7 +39,7 @@ For loop example getting entity values in the weather domain: @customElement("developer-tools-template") class HaPanelDevTemplate extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Boolean }) public narrow = false; diff --git a/src/panels/iframe/ha-panel-iframe.ts b/src/panels/iframe/ha-panel-iframe.ts index 98080afac4..013ec96d93 100644 --- a/src/panels/iframe/ha-panel-iframe.ts +++ b/src/panels/iframe/ha-panel-iframe.ts @@ -7,7 +7,7 @@ import { HomeAssistant, PanelInfo } from "../../types"; @customElement("ha-panel-iframe") class HaPanelIframe extends LitElement { - @property() hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ type: Boolean }) narrow!: boolean; diff --git a/src/panels/logbook/ha-panel-logbook.ts b/src/panels/logbook/ha-panel-logbook.ts index 2d4b754f54..567e28595a 100644 --- a/src/panels/logbook/ha-panel-logbook.ts +++ b/src/panels/logbook/ha-panel-logbook.ts @@ -21,7 +21,7 @@ import "./ha-logbook"; @customElement("ha-panel-logbook") export class HaPanelLogbook extends LitElement { - @property() hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property({ reflect: true, type: Boolean }) narrow!: boolean; diff --git a/src/panels/lovelace/cards/hui-iframe-card.ts b/src/panels/lovelace/cards/hui-iframe-card.ts index f151501bcd..d81de3dd88 100644 --- a/src/panels/lovelace/cards/hui-iframe-card.ts +++ b/src/panels/lovelace/cards/hui-iframe-card.ts @@ -27,7 +27,7 @@ export class HuiIframeCard extends LitElement implements LovelaceCard { @property({ type: Boolean, reflect: true }) public isPanel = false; - @property() public hass?: HomeAssistant; + @property({ attribute: false }) public hass?: HomeAssistant; @state() protected _config?: IframeCardConfig; diff --git a/src/panels/lovelace/components/hui-color-picker.ts b/src/panels/lovelace/components/hui-color-picker.ts index 5928be7996..8417e9dbd5 100644 --- a/src/panels/lovelace/components/hui-color-picker.ts +++ b/src/panels/lovelace/components/hui-color-picker.ts @@ -17,7 +17,7 @@ export class HuiColorPicker extends LitElement { @property() public helper?: string; - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @property() public value?: string; diff --git a/src/panels/lovelace/entity-rows/hui-humidifier-entity-row.ts b/src/panels/lovelace/entity-rows/hui-humidifier-entity-row.ts index 4463710945..fcdc56bf54 100644 --- a/src/panels/lovelace/entity-rows/hui-humidifier-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-humidifier-entity-row.ts @@ -18,7 +18,7 @@ import { EntityConfig, LovelaceRow } from "./types"; @customElement("hui-humidifier-entity-row") class HuiHumidifierEntityRow extends LitElement implements LovelaceRow { - @property() public hass?: HomeAssistant; + @property({ attribute: false }) public hass?: HomeAssistant; @property() private _config?: EntityConfig; diff --git a/src/panels/lovelace/ha-panel-lovelace.ts b/src/panels/lovelace/ha-panel-lovelace.ts index a767452e3e..e0b5455bbc 100644 --- a/src/panels/lovelace/ha-panel-lovelace.ts +++ b/src/panels/lovelace/ha-panel-lovelace.ts @@ -58,7 +58,7 @@ export class LovelacePanel extends LitElement { @property({ type: Boolean }) public narrow = false; - @property() public route?: Route; + @property({ attribute: false }) public route?: Route; @property() private _panelState?: "loading" | "loaded" | "error" | "yaml-editor" = diff --git a/src/panels/media-browser/ha-panel-media-browser.ts b/src/panels/media-browser/ha-panel-media-browser.ts index 56bca1c6bf..eb77c02eed 100644 --- a/src/panels/media-browser/ha-panel-media-browser.ts +++ b/src/panels/media-browser/ha-panel-media-browser.ts @@ -68,7 +68,7 @@ class PanelMediaBrowser extends LitElement { @property({ type: Boolean, reflect: true }) public narrow!: boolean; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() _currentItem?: MediaPlayerItem; diff --git a/src/panels/my/ha-panel-my.ts b/src/panels/my/ha-panel-my.ts index c525fa2dee..bac84192a2 100644 --- a/src/panels/my/ha-panel-my.ts +++ b/src/panels/my/ha-panel-my.ts @@ -300,7 +300,7 @@ export interface Redirect { class HaPanelMy extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public route!: Route; + @property({ attribute: false }) public route!: Route; @state() public _error?: string; diff --git a/src/panels/profile/dialog-ha-mfa-module-setup-flow.ts b/src/panels/profile/dialog-ha-mfa-module-setup-flow.ts index d218f03cdd..c836b21876 100644 --- a/src/panels/profile/dialog-ha-mfa-module-setup-flow.ts +++ b/src/panels/profile/dialog-ha-mfa-module-setup-flow.ts @@ -17,7 +17,7 @@ let instance = 0; @customElement("ha-mfa-module-setup-flow") class HaMfaModuleSetupFlow extends LitElement { - @property() public hass!: HomeAssistant; + @property({ attribute: false }) public hass!: HomeAssistant; @state() private _dialogClosedCallback?: (params: { flowFinished: boolean; diff --git a/src/state-summary/state-card-button.ts b/src/state-summary/state-card-button.ts index 45b2d6a958..71944de9a4 100644 --- a/src/state-summary/state-card-button.ts +++ b/src/state-summary/state-card-button.ts @@ -12,7 +12,7 @@ import { HomeAssistant } from "../types"; class StateCardButton extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: HassEntity; + @property({ attribute: false }) public stateObj!: HassEntity; @property({ type: Boolean }) public inDialog = false; diff --git a/src/state-summary/state-card-event.ts b/src/state-summary/state-card-event.ts index e80985d95a..b9e9a59e09 100644 --- a/src/state-summary/state-card-event.ts +++ b/src/state-summary/state-card-event.ts @@ -10,7 +10,7 @@ import { HomeAssistant } from "../types"; class StateCardEvent extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: HassEntity; + @property({ attribute: false }) public stateObj!: HassEntity; @property({ type: Boolean }) public inDialog = false; diff --git a/src/state-summary/state-card-input_button.ts b/src/state-summary/state-card-input_button.ts index 2de153cb54..1c130c9a5f 100644 --- a/src/state-summary/state-card-input_button.ts +++ b/src/state-summary/state-card-input_button.ts @@ -12,7 +12,7 @@ import { HomeAssistant } from "../types"; class StateCardInputButton extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: HassEntity; + @property({ attribute: false }) public stateObj!: HassEntity; @property({ type: Boolean }) public inDialog = false; diff --git a/src/state-summary/state-card-input_number.ts b/src/state-summary/state-card-input_number.ts index a389da6bd2..c5b2e177ec 100644 --- a/src/state-summary/state-card-input_number.ts +++ b/src/state-summary/state-card-input_number.ts @@ -15,7 +15,7 @@ import { HomeAssistant } from "../types"; class StateCardInputNumber extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: HassEntity; + @property({ attribute: false }) public stateObj!: HassEntity; @property({ type: Boolean }) public inDialog = false; diff --git a/src/state-summary/state-card-input_select.ts b/src/state-summary/state-card-input_select.ts index bf276776c8..c82347b343 100644 --- a/src/state-summary/state-card-input_select.ts +++ b/src/state-summary/state-card-input_select.ts @@ -21,7 +21,7 @@ import type { HaSelect } from "../components/ha-select"; class StateCardInputSelect extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: InputSelectEntity; + @property({ attribute: false }) public stateObj!: InputSelectEntity; @query("ha-select", true) private _haSelect!: HaSelect; diff --git a/src/state-summary/state-card-lawn_mower.ts b/src/state-summary/state-card-lawn_mower.ts index a9cb5a17b8..1989970f3c 100644 --- a/src/state-summary/state-card-lawn_mower.ts +++ b/src/state-summary/state-card-lawn_mower.ts @@ -10,7 +10,7 @@ import type { HomeAssistant } from "../types"; class StateCardLawnMower extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: HassEntity; + @property({ attribute: false }) public stateObj!: HassEntity; @property({ type: Boolean }) public inDialog = false; diff --git a/src/state-summary/state-card-script.ts b/src/state-summary/state-card-script.ts index 2a0f65af82..f8014684e7 100644 --- a/src/state-summary/state-card-script.ts +++ b/src/state-summary/state-card-script.ts @@ -13,7 +13,7 @@ import { HomeAssistant } from "../types"; class StateCardScript extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: HassEntity; + @property({ attribute: false }) public stateObj!: HassEntity; @property({ type: Boolean }) public inDialog = false; diff --git a/src/state-summary/state-card-select.ts b/src/state-summary/state-card-select.ts index 72f79d97a9..45b8d766e7 100644 --- a/src/state-summary/state-card-select.ts +++ b/src/state-summary/state-card-select.ts @@ -13,7 +13,7 @@ import type { HomeAssistant } from "../types"; class StateCardSelect extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: SelectEntity; + @property({ attribute: false }) public stateObj!: SelectEntity; protected render(): TemplateResult { return html` diff --git a/src/state-summary/state-card-text.ts b/src/state-summary/state-card-text.ts index 563d055d4c..f83315bdf5 100644 --- a/src/state-summary/state-card-text.ts +++ b/src/state-summary/state-card-text.ts @@ -12,7 +12,7 @@ import type { HomeAssistant } from "../types"; class StateCardText extends LitElement { @property({ attribute: false }) public hass!: HomeAssistant; - @property() public stateObj!: TextEntity; + @property({ attribute: false }) public stateObj!: TextEntity; protected render(): TemplateResult { return html`