mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix incompatible boolean property types (#19337)
This commit is contained in:
parent
8583c879f2
commit
96a41704ea
@ -11,7 +11,7 @@ class DemoBlackWhiteRow extends LitElement {
|
|||||||
|
|
||||||
@property() value!: any;
|
@property() value!: any;
|
||||||
|
|
||||||
@property() disabled = false;
|
@property({ type: Boolean }) public disabled = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -15,7 +15,7 @@ class DemoCard extends LitElement {
|
|||||||
|
|
||||||
@property() public config!: DemoCardConfig;
|
@property() public config!: DemoCardConfig;
|
||||||
|
|
||||||
@property() public showConfig = false;
|
@property({ type: Boolean }) public showConfig = false;
|
||||||
|
|
||||||
@state() private _size?: number;
|
@state() private _size?: number;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ class DemoMoreInfo extends LitElement {
|
|||||||
|
|
||||||
@property() public entityId!: string;
|
@property() public entityId!: string;
|
||||||
|
|
||||||
@property() public showConfig!: boolean;
|
@property({ type: Boolean }) public showConfig = false;
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const state = this._getState(this.entityId, this.hass.states);
|
const state = this._getState(this.entityId, this.hass.states);
|
||||||
|
@ -23,7 +23,7 @@ export class StateHistoryChartTimeline extends LitElement {
|
|||||||
|
|
||||||
@property({ attribute: false }) public data: TimelineEntity[] = [];
|
@property({ attribute: false }) public data: TimelineEntity[] = [];
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public names?: Record<string, string>;
|
@property() public names?: Record<string, string>;
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ export class StateHistoryCharts extends LitElement {
|
|||||||
|
|
||||||
@property({ attribute: false }) public historyData!: HistoryResult;
|
@property({ attribute: false }) public historyData!: HistoryResult;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public names?: Record<string, string>;
|
@property() public names?: Record<string, string>;
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ export class HaStateLabelBadge extends LitElement {
|
|||||||
|
|
||||||
@property() public image?: string;
|
@property() public image?: string;
|
||||||
|
|
||||||
@property() public showName?: boolean;
|
@property({ type: Boolean }) public showName = false;
|
||||||
|
|
||||||
@state() private _timerTimeRemaining?: number;
|
@state() private _timerTimeRemaining?: number;
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ export class HaAssistPipelinePicker extends LitElement {
|
|||||||
|
|
||||||
@property({ type: Boolean }) public required = false;
|
@property({ type: Boolean }) public required = false;
|
||||||
|
|
||||||
@property() public includeLastUsed = false;
|
@property({ type: Boolean }) public includeLastUsed = false;
|
||||||
|
|
||||||
@state() _pipelines?: AssistPipeline[];
|
@state() _pipelines?: AssistPipeline[];
|
||||||
|
|
||||||
|
@ -54,9 +54,9 @@ export class HaDateRangePicker extends LitElement {
|
|||||||
|
|
||||||
@state() private _ranges?: DateRangePickerRanges;
|
@state() private _ranges?: DateRangePickerRanges;
|
||||||
|
|
||||||
@property() public autoApply = false;
|
@property({ type: Boolean }) public autoApply = false;
|
||||||
|
|
||||||
@property() public timePicker = true;
|
@property({ type: Boolean }) public timePicker = true;
|
||||||
|
|
||||||
@property({ type: Boolean }) public disabled = false;
|
@property({ type: Boolean }) public disabled = false;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import { fireEvent } from "../common/dom/fire_event";
|
|||||||
|
|
||||||
@customElement("ha-labeled-slider")
|
@customElement("ha-labeled-slider")
|
||||||
class HaLabeledSlider extends LitElement {
|
class HaLabeledSlider extends LitElement {
|
||||||
@property() public labeled? = false;
|
@property({ type: Boolean }) public labeled = false;
|
||||||
|
|
||||||
@property() public caption?: string;
|
@property() public caption?: string;
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ class HaLabeledSlider extends LitElement {
|
|||||||
|
|
||||||
@property() public helper?: string;
|
@property() public helper?: string;
|
||||||
|
|
||||||
@property() public extra = false;
|
@property({ type: Boolean }) public extra = false;
|
||||||
|
|
||||||
@property() public icon?: string;
|
@property() public icon?: string;
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ class HaLabeledSlider extends LitElement {
|
|||||||
.min=${this.min}
|
.min=${this.min}
|
||||||
.max=${this.max}
|
.max=${this.max}
|
||||||
.step=${this.step}
|
.step=${this.step}
|
||||||
labeled=${this.labeled}
|
.labeled=${this.labeled}
|
||||||
.disabled=${this.disabled}
|
.disabled=${this.disabled}
|
||||||
.value=${this.value}
|
.value=${this.value}
|
||||||
@change=${this._inputChanged}
|
@change=${this._inputChanged}
|
||||||
|
@ -11,7 +11,7 @@ import "./ha-icon-button";
|
|||||||
class HaMenuButton extends LitElement {
|
class HaMenuButton extends LitElement {
|
||||||
@property({ type: Boolean }) public hassio = false;
|
@property({ type: Boolean }) public hassio = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ export class HaThemePicker extends LitElement {
|
|||||||
|
|
||||||
@property() public label?: string;
|
@property() public label?: string;
|
||||||
|
|
||||||
@property() includeDefault?: boolean = false;
|
@property({ type: Boolean }) includeDefault = false;
|
||||||
|
|
||||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||||
|
|
||||||
|
@ -35,13 +35,13 @@ import {
|
|||||||
export class RecurrenceRuleEditor extends LitElement {
|
export class RecurrenceRuleEditor extends LitElement {
|
||||||
@property() public hass!: HomeAssistant;
|
@property() public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public disabled = false;
|
@property({ type: Boolean }) public disabled = false;
|
||||||
|
|
||||||
@property() public value = "";
|
@property() public value = "";
|
||||||
|
|
||||||
@property() public dtstart?: Date;
|
@property() public dtstart?: Date;
|
||||||
|
|
||||||
@property() public allDay?: boolean;
|
@property({ type: Boolean }) public allDay = false;
|
||||||
|
|
||||||
@property({ attribute: false }) public locale!: HomeAssistant["locale"];
|
@property({ attribute: false }) public locale!: HomeAssistant["locale"];
|
||||||
|
|
||||||
|
@ -41,9 +41,9 @@ export class HaConfigApplicationCredentials extends LitElement {
|
|||||||
|
|
||||||
@state() public _applicationCredentials: ApplicationCredential[] = [];
|
@state() public _applicationCredentials: ApplicationCredential[] = [];
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -36,9 +36,9 @@ import {
|
|||||||
export class HaConfigAreasDashboard extends SubscribeMixin(LitElement) {
|
export class HaConfigAreasDashboard extends SubscribeMixin(LitElement) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide?: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -11,11 +11,11 @@ import "./ha-config-areas-dashboard";
|
|||||||
class HaConfigAreas extends HassRouterPage {
|
class HaConfigAreas extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
protected routerOptions: RouterOptions = {
|
protected routerOptions: RouterOptions = {
|
||||||
defaultPage: "dashboard",
|
defaultPage: "dashboard",
|
||||||
|
@ -24,7 +24,7 @@ import "../ha-config-section";
|
|||||||
export class HaBlueprintAutomationEditor extends LitElement {
|
export class HaBlueprintAutomationEditor extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property({ type: Boolean }) public disabled = false;
|
@property({ type: Boolean }) public disabled = false;
|
||||||
|
|
||||||
|
@ -89,9 +89,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
|||||||
|
|
||||||
@property() public automations!: AutomationEntity[];
|
@property() public automations!: AutomationEntity[];
|
||||||
|
|
||||||
@property() public isWide?: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@ const equal = (a: AutomationEntity[], b: AutomationEntity[]): boolean => {
|
|||||||
class HaConfigAutomation extends HassRouterPage {
|
class HaConfigAutomation extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
@property() public automations: AutomationEntity[] = [];
|
@property() public automations: AutomationEntity[] = [];
|
||||||
|
|
||||||
|
@ -19,11 +19,11 @@ declare global {
|
|||||||
class HaConfigBlueprint extends HassRouterPage {
|
class HaConfigBlueprint extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
@property() public blueprints: Record<string, Blueprints> = {};
|
@property() public blueprints: Record<string, Blueprints> = {};
|
||||||
|
|
||||||
|
@ -16,9 +16,9 @@ const NOT_LOGGED_IN_URLS = ["login", "register", "forgot-password"];
|
|||||||
class HaConfigCloud extends HassRouterPage {
|
class HaConfigCloud extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -117,11 +117,11 @@ class HaConfigDashboard extends SubscribeMixin(LitElement) {
|
|||||||
@property({ type: Boolean, reflect: true })
|
@property({ type: Boolean, reflect: true })
|
||||||
public narrow!: boolean;
|
public narrow!: boolean;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public cloudStatus?: CloudStatus;
|
@property() public cloudStatus?: CloudStatus;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
@state() private _tip?: string;
|
@state() private _tip?: string;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ export class HaDeviceEntitiesCard extends LitElement {
|
|||||||
|
|
||||||
@property() public entities!: EntityRegistryStateEntry[];
|
@property() public entities!: EntityRegistryStateEntry[];
|
||||||
|
|
||||||
@property() public showHidden = false;
|
@property({ type: Boolean }) public showHidden = false;
|
||||||
|
|
||||||
@state() private _extDisabledEntityEntries?: Record<
|
@state() private _extDisabledEntityEntries?: Record<
|
||||||
string,
|
string,
|
||||||
|
@ -15,7 +15,7 @@ export class HaDeviceCard extends LitElement {
|
|||||||
|
|
||||||
@property() public device!: DeviceRegistryEntry;
|
@property() public device!: DeviceRegistryEntry;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -7,7 +7,7 @@ import { classMap } from "lit/directives/class-map";
|
|||||||
class MQTTDiscoveryPayload extends LitElement {
|
class MQTTDiscoveryPayload extends LitElement {
|
||||||
@property() public payload!: Record<string, unknown>;
|
@property() public payload!: Record<string, unknown>;
|
||||||
|
|
||||||
@property() public showAsYaml = false;
|
@property({ type: Boolean }) public showAsYaml = false;
|
||||||
|
|
||||||
@property() public summary!: string;
|
@property() public summary!: string;
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@ class MQTTMessages extends LitElement {
|
|||||||
|
|
||||||
@property() public direction!: string;
|
@property() public direction!: string;
|
||||||
|
|
||||||
@property() public showAsYaml = false;
|
@property({ type: Boolean }) public showAsYaml = false;
|
||||||
|
|
||||||
@property() public showDeserialized = false;
|
@property({ type: Boolean }) public showDeserialized = false;
|
||||||
|
|
||||||
@property() public subscribedTopic!: string;
|
@property() public subscribedTopic!: string;
|
||||||
|
|
||||||
|
@ -62,9 +62,9 @@ interface DeviceRowData extends DeviceRegistryEntry {
|
|||||||
export class HaConfigDeviceDashboard extends LitElement {
|
export class HaConfigDeviceDashboard extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow = false;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide = false;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public entries!: ConfigEntry[];
|
@property() public entries!: ConfigEntry[];
|
||||||
|
|
||||||
|
@ -16,11 +16,11 @@ import "./ha-config-devices-dashboard";
|
|||||||
class HaConfigDevices extends HassRouterPage {
|
class HaConfigDevices extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
protected routerOptions: RouterOptions = {
|
protected routerOptions: RouterOptions = {
|
||||||
defaultPage: "dashboard",
|
defaultPage: "dashboard",
|
||||||
|
@ -4,7 +4,7 @@ import { classMap } from "lit/directives/class-map";
|
|||||||
|
|
||||||
@customElement("ha-config-section")
|
@customElement("ha-config-section")
|
||||||
export class HaConfigSection extends LitElement {
|
export class HaConfigSection extends LitElement {
|
||||||
@property() public isWide = false;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property({ type: Boolean }) public vertical = false;
|
@property({ type: Boolean }) public vertical = false;
|
||||||
|
|
||||||
|
@ -360,7 +360,7 @@ export const configSections: { [name: string]: PageNavigation[] } = {
|
|||||||
class HaPanelConfig extends SubscribeMixin(HassRouterPage) {
|
class HaPanelConfig extends SubscribeMixin(HassRouterPage) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import { HomeAssistant } from "../../../../types";
|
|||||||
class HaCounterForm extends LitElement {
|
class HaCounterForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
private _item?: Partial<Counter>;
|
private _item?: Partial<Counter>;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import { HomeAssistant } from "../../../../types";
|
|||||||
class HaInputBooleanForm extends LitElement {
|
class HaInputBooleanForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
private _item?: InputBoolean;
|
private _item?: InputBoolean;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import { HomeAssistant } from "../../../../types";
|
|||||||
class HaInputButtonForm extends LitElement {
|
class HaInputButtonForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
@state() private _name!: string;
|
@state() private _name!: string;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import { HomeAssistant } from "../../../../types";
|
|||||||
class HaInputDateTimeForm extends LitElement {
|
class HaInputDateTimeForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
private _item?: InputDateTime;
|
private _item?: InputDateTime;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import { HomeAssistant } from "../../../../types";
|
|||||||
class HaInputNumberForm extends LitElement {
|
class HaInputNumberForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
private _item?: Partial<InputNumber>;
|
private _item?: Partial<InputNumber>;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import type { HomeAssistant } from "../../../../types";
|
|||||||
class HaInputSelectForm extends LitElement {
|
class HaInputSelectForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
private _item?: InputSelect;
|
private _item?: InputSelect;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ import { HomeAssistant } from "../../../../types";
|
|||||||
class HaInputTextForm extends LitElement {
|
class HaInputTextForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
private _item?: InputText;
|
private _item?: InputText;
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ const defaultFullCalendarConfig: CalendarOptions = {
|
|||||||
class HaScheduleForm extends LitElement {
|
class HaScheduleForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
@state() private _name!: string;
|
@state() private _name!: string;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import { HomeAssistant } from "../../../../types";
|
|||||||
class HaTimerForm extends LitElement {
|
class HaTimerForm extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public new?: boolean;
|
@property({ type: Boolean }) public new = false;
|
||||||
|
|
||||||
private _item?: Timer;
|
private _item?: Timer;
|
||||||
|
|
||||||
|
@ -81,9 +81,9 @@ const getConfigEntry = (
|
|||||||
export class HaConfigHelpers extends SubscribeMixin(LitElement) {
|
export class HaConfigHelpers extends SubscribeMixin(LitElement) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -94,9 +94,9 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
|||||||
|
|
||||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -53,9 +53,9 @@ class HaConfigIntegrations extends SubscribeMixin(HassRouterPage) {
|
|||||||
|
|
||||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
protected routerOptions: RouterOptions = {
|
protected routerOptions: RouterOptions = {
|
||||||
defaultPage: "dashboard",
|
defaultPage: "dashboard",
|
||||||
|
@ -24,9 +24,9 @@ export const configTabs: PageNavigation[] = [
|
|||||||
class MatterConfigRouter extends HassRouterPage {
|
class MatterConfigRouter extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected routerOptions: RouterOptions = {
|
protected routerOptions: RouterOptions = {
|
||||||
defaultPage: "dashboard",
|
defaultPage: "dashboard",
|
||||||
|
@ -28,7 +28,7 @@ import { IssueCommandServiceData } from "./types";
|
|||||||
export class ZHAClusterCommands extends LitElement {
|
export class ZHAClusterCommands extends LitElement {
|
||||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide?: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public device?: ZHADevice;
|
@property() public device?: ZHADevice;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ export interface ClusterRowData extends Cluster {
|
|||||||
export class ZHAClustersDataTable extends LitElement {
|
export class ZHAClustersDataTable extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow = false;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public clusters: Cluster[] = [];
|
@property() public clusters: Cluster[] = [];
|
||||||
|
|
||||||
|
@ -10,9 +10,9 @@ import { HomeAssistant } from "../../../../../types";
|
|||||||
class ZHAConfigDashboardRouter extends HassRouterPage {
|
class ZHAConfigDashboardRouter extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
private _configEntry = new URLSearchParams(window.location.search).get(
|
private _configEntry = new URLSearchParams(window.location.search).get(
|
||||||
"config_entry"
|
"config_entry"
|
||||||
|
@ -40,7 +40,7 @@ const tabs = ["attributes", "commands"] as const;
|
|||||||
export class ZHAManageClusters extends LitElement {
|
export class ZHAManageClusters extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide?: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public device?: ZHADevice;
|
@property() public device?: ZHADevice;
|
||||||
|
|
||||||
|
@ -26,9 +26,9 @@ export const configTabs: PageNavigation[] = [
|
|||||||
class ZWaveJSConfigRouter extends HassRouterPage {
|
class ZWaveJSConfigRouter extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
private _configEntry = new URLSearchParams(window.location.search).get(
|
private _configEntry = new URLSearchParams(window.location.search).get(
|
||||||
"config_entry"
|
"config_entry"
|
||||||
|
@ -56,9 +56,9 @@ type DataTableItem = Pick<
|
|||||||
export class HaConfigLovelaceDashboards extends LitElement {
|
export class HaConfigLovelaceDashboards extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -19,9 +19,9 @@ export const lovelaceTabs = [
|
|||||||
class HaConfigLovelace extends HassRouterPage {
|
class HaConfigLovelace extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
protected routerOptions: RouterOptions = {
|
protected routerOptions: RouterOptions = {
|
||||||
defaultPage: "dashboards",
|
defaultPage: "dashboards",
|
||||||
|
@ -41,9 +41,9 @@ import { showResourceDetailDialog } from "./show-dialog-lovelace-resource-detail
|
|||||||
export class HaConfigLovelaceRescources extends LitElement {
|
export class HaConfigLovelaceRescources extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -35,9 +35,9 @@ import {
|
|||||||
export class HaConfigPerson extends LitElement {
|
export class HaConfigPerson extends LitElement {
|
||||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide?: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow?: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -24,11 +24,11 @@ const equal = (a: SceneEntity[], b: SceneEntity[]): boolean => {
|
|||||||
class HaConfigScene extends HassRouterPage {
|
class HaConfigScene extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
@property() public scenes: SceneEntity[] = [];
|
@property() public scenes: SceneEntity[] = [];
|
||||||
|
|
||||||
|
@ -64,9 +64,9 @@ type SceneItem = SceneEntity & {
|
|||||||
class HaSceneDashboard extends LitElement {
|
class HaSceneDashboard extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -87,9 +87,9 @@ export class HaSceneEditor extends SubscribeMixin(
|
|||||||
) {
|
) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ export class HaSceneEditor extends SubscribeMixin(
|
|||||||
|
|
||||||
@property() public scenes!: SceneEntity[];
|
@property() public scenes!: SceneEntity[];
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
@state() private _dirty = false;
|
@state() private _dirty = false;
|
||||||
|
|
||||||
|
@ -27,11 +27,11 @@ const equal = (a: ScriptEntity[], b: ScriptEntity[]): boolean => {
|
|||||||
class HaConfigScript extends HassRouterPage {
|
class HaConfigScript extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public showAdvanced!: boolean;
|
@property({ type: Boolean }) public showAdvanced = false;
|
||||||
|
|
||||||
@property() public scripts: ScriptEntity[] = [];
|
@property() public scripts: ScriptEntity[] = [];
|
||||||
|
|
||||||
|
@ -70,9 +70,9 @@ class HaScriptPicker extends LitElement {
|
|||||||
|
|
||||||
@property() public scripts!: ScriptEntity[];
|
@property() public scripts!: ScriptEntity[];
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -44,9 +44,9 @@ export interface TagRowData extends Tag {
|
|||||||
export class HaConfigTags extends SubscribeMixin(LitElement) {
|
export class HaConfigTags extends SubscribeMixin(LitElement) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ export class HaConfigVoiceAssistantsAssistants extends LitElement {
|
|||||||
ExposeEntitySettings
|
ExposeEntitySettings
|
||||||
>;
|
>;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -33,9 +33,9 @@ class HaConfigVoiceAssistants extends HassRouterPage {
|
|||||||
|
|
||||||
@property({ attribute: false }) public cloudStatus!: CloudStatus;
|
@property({ attribute: false }) public cloudStatus!: CloudStatus;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public isWide!: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@state()
|
@state()
|
||||||
@consume({ context: entitiesContext, subscribe: true })
|
@consume({ context: entitiesContext, subscribe: true })
|
||||||
|
@ -52,9 +52,9 @@ import { showZoneDetailDialog } from "./show-dialog-zone-detail";
|
|||||||
export class HaConfigZone extends SubscribeMixin(LitElement) {
|
export class HaConfigZone extends SubscribeMixin(LitElement) {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public isWide?: boolean;
|
@property({ type: Boolean }) public isWide = false;
|
||||||
|
|
||||||
@property() public narrow?: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ declare global {
|
|||||||
export class HaPanelCustom extends ReactiveElement {
|
export class HaPanelCustom extends ReactiveElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import { storeState } from "../../../util/ha-pref-storage";
|
|||||||
class HaDebugConnectionRow extends LitElement {
|
class HaDebugConnectionRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -6,7 +6,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class DeveloperToolsRouter extends HassRouterPage {
|
class DeveloperToolsRouter extends HassRouterPage {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected routerOptions: RouterOptions = {
|
protected routerOptions: RouterOptions = {
|
||||||
// defaultPage: "info",
|
// defaultPage: "info",
|
||||||
|
@ -19,7 +19,7 @@ class PanelDeveloperTools extends LitElement {
|
|||||||
|
|
||||||
@property() public route!: Route;
|
@property() public route!: Route;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected firstUpdated(changedProps) {
|
protected firstUpdated(changedProps) {
|
||||||
super.firstUpdated(changedProps);
|
super.firstUpdated(changedProps);
|
||||||
|
@ -41,7 +41,7 @@ For loop example getting entity values in the weather domain:
|
|||||||
class HaPanelDevTemplate extends LitElement {
|
class HaPanelDevTemplate extends LitElement {
|
||||||
@property() public hass!: HomeAssistant;
|
@property() public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@state() private _error?: string;
|
@state() private _error?: string;
|
||||||
|
|
||||||
|
@ -42,9 +42,9 @@ export class HuiEntityFilterCard
|
|||||||
|
|
||||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||||
|
|
||||||
@property() public isPanel = false;
|
@property({ type: Boolean }) public isPanel = false;
|
||||||
|
|
||||||
@property() public editMode = false;
|
@property({ type: Boolean }) public editMode = false;
|
||||||
|
|
||||||
@state() private _config?: EntityFilterCardConfig;
|
@state() private _config?: EntityFilterCardConfig;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
|
|||||||
|
|
||||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||||
|
|
||||||
@property() public editMode?: boolean;
|
@property({ type: Boolean }) public editMode = false;
|
||||||
|
|
||||||
@property() protected _cards?: LovelaceCard[];
|
@property() protected _cards?: LovelaceCard[];
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ function extractMediaQueries(
|
|||||||
export class HuiConditionalBase extends ReactiveElement {
|
export class HuiConditionalBase extends ReactiveElement {
|
||||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||||
|
|
||||||
@property() public editMode?: boolean;
|
@property({ type: Boolean }) public editMode = false;
|
||||||
|
|
||||||
@property() protected _config?: ConditionalCardConfig | ConditionalRowConfig;
|
@property() protected _config?: ConditionalCardConfig | ConditionalRowConfig;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ export class LovelacePanel extends LitElement {
|
|||||||
|
|
||||||
@property({ attribute: false }) public hass?: HomeAssistant;
|
@property({ attribute: false }) public hass?: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow?: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public route?: Route;
|
@property() public route?: Route;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class AdvancedModeRow extends LitElement {
|
class AdvancedModeRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@property() public coreUserData?: CoreFrontendUserData;
|
@property() public coreUserData?: CoreFrontendUserData;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import type { HomeAssistant } from "../../types";
|
|||||||
class HaEnableShortcutsRow extends LitElement {
|
class HaEnableShortcutsRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -10,7 +10,7 @@ import type { HomeAssistant } from "../../types";
|
|||||||
class HaForcedNarrowRow extends LitElement {
|
class HaForcedNarrowRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -14,7 +14,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class HaPickDashboardRow extends LitElement {
|
class HaPickDashboardRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
@state() private _dashboards?: LovelaceDashboard[];
|
@state() private _dashboards?: LovelaceDashboard[];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class DateFormatRow extends LitElement {
|
class DateFormatRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
|
@ -12,7 +12,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class FirstWeekdayRow extends LitElement {
|
class FirstWeekdayRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -9,7 +9,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
export class HaPickLanguageRow extends LitElement {
|
export class HaPickLanguageRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
return html`
|
return html`
|
||||||
|
@ -13,7 +13,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class NumberFormatRow extends LitElement {
|
class NumberFormatRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -13,7 +13,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class TimeFormatRow extends LitElement {
|
class TimeFormatRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
|
@ -13,7 +13,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class TimeZoneRow extends LitElement {
|
class TimeZoneRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
const date = new Date();
|
const date = new Date();
|
||||||
|
@ -10,7 +10,7 @@ import { HomeAssistant } from "../../types";
|
|||||||
class HaPushNotificationsRow extends LitElement {
|
class HaPushNotificationsRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
const platformLoaded = isComponentLoaded(this.hass, "notify.html5");
|
const platformLoaded = isComponentLoaded(this.hass, "notify.html5");
|
||||||
|
@ -23,7 +23,7 @@ declare global {
|
|||||||
class HaSetSuspendRow extends LitElement {
|
class HaSetSuspendRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
@ -11,7 +11,7 @@ import type { HomeAssistant } from "../../types";
|
|||||||
class HaSetVibrateRow extends LitElement {
|
class HaSetVibrateRow extends LitElement {
|
||||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||||
|
|
||||||
@property() public narrow!: boolean;
|
@property({ type: Boolean }) public narrow = false;
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user