Initialize boolean properties (#19445)
This commit is contained in:
parent
04f6a01c3d
commit
6234f7b7d2
|
@ -56,7 +56,7 @@ export class HassioAddonStore extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public supervisor!: Supervisor;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class HassioAddonDashboard extends LitElement {
|
|||
| HassioAddonDetails
|
||||
| StoreAddonDetails;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _error?: string;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import "./hassio-addon-info";
|
|||
|
||||
@customElement("hassio-addon-info-tab")
|
||||
class HassioAddonInfoDashboard extends LitElement {
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ const RATING_ICON = {
|
|||
|
||||
@customElement("hassio-addon-info")
|
||||
class HassioAddonInfo extends LitElement {
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -61,9 +61,9 @@ export class HassioBackups extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@state() private _selectedBackups: string[] = [];
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class HassioAddons extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public supervisor!: Supervisor;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _filter?: string;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class HassioDashboard extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public supervisor!: Supervisor;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ export class HassioMain extends SupervisorBaseElement {
|
|||
|
||||
@property({ attribute: false }) public panel!: HassioPanelInfo;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
protected firstUpdated(changedProps: PropertyValues) {
|
||||
super.firstUpdated(changedProps);
|
||||
|
|
|
@ -16,7 +16,7 @@ class HassioPanelRouter extends HassRouterPage {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
protected routerOptions: RouterOptions = {
|
||||
beforeRender: (page: string) =>
|
||||
|
|
|
@ -14,7 +14,7 @@ class HassioPanel extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public supervisor!: Supervisor;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class HassioRouter extends HassRouterPage {
|
|||
|
||||
@property({ attribute: false }) public panel!: HassioPanelInfo;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
protected routerOptions: RouterOptions = {
|
||||
// Hass.io has a page with tabs, so we route all non-matching routes to it.
|
||||
|
|
|
@ -18,7 +18,7 @@ class HassioSystem extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public supervisor!: Supervisor;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ class UpdateAvailableCard extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public addonSlug?: string;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ class UpdateAvailableDashboard extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public supervisor!: Supervisor;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -88,9 +88,9 @@ export class HaDevicePicker extends LitElement {
|
|||
|
||||
@property() public entityFilter?: HaDevicePickerEntityFilterFunc;
|
||||
|
||||
@property({ type: Boolean }) public disabled?: boolean;
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
@property({ type: Boolean }) public required?: boolean;
|
||||
@property({ type: Boolean }) public required = false;
|
||||
|
||||
@state() private _opened?: boolean;
|
||||
|
||||
|
|
|
@ -16,9 +16,9 @@ class HaDevicesPicker extends LitElement {
|
|||
|
||||
@property() public helper?: string;
|
||||
|
||||
@property({ type: Boolean }) public disabled?: boolean;
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
@property({ type: Boolean }) public required?: boolean;
|
||||
@property({ type: Boolean }) public required = false;
|
||||
|
||||
/**
|
||||
* Show entities from specific domains.
|
||||
|
|
|
@ -14,9 +14,9 @@ class HaEntitiesPickerLight extends LitElement {
|
|||
|
||||
@property({ type: Array }) public value?: string[];
|
||||
|
||||
@property({ type: Boolean }) public disabled?: boolean;
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
@property({ type: Boolean }) public required?: boolean;
|
||||
@property({ type: Boolean }) public required = false;
|
||||
|
||||
@property() public helper?: string;
|
||||
|
||||
|
|
|
@ -41,9 +41,9 @@ export class HaEntityPicker extends LitElement {
|
|||
|
||||
@property({ type: Boolean }) public autofocus = false;
|
||||
|
||||
@property({ type: Boolean }) public disabled?: boolean;
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
@property({ type: Boolean }) public required?: boolean;
|
||||
@property({ type: Boolean }) public required = false;
|
||||
|
||||
@property({ type: Boolean, attribute: "allow-custom-entity" })
|
||||
public allowCustomEntity;
|
||||
|
|
|
@ -44,7 +44,7 @@ export class HaStatisticPicker extends LitElement {
|
|||
|
||||
@property({ type: Array }) public statisticIds?: StatisticsMetaData[];
|
||||
|
||||
@property({ type: Boolean }) public disabled?: boolean;
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
/**
|
||||
* Show only statistics natively stored with these units of measurements.
|
||||
|
|
|
@ -32,7 +32,7 @@ export class StateBadge extends LitElement {
|
|||
|
||||
@property() public overrideImage?: string;
|
||||
|
||||
@property({ type: Boolean }) public stateColor?: boolean;
|
||||
@property({ type: Boolean }) public stateColor = false;
|
||||
|
||||
@property() public color?: string;
|
||||
|
||||
|
|
|
@ -92,9 +92,9 @@ export class HaAreaPicker extends LitElement {
|
|||
|
||||
@property() public entityFilter?: (entity: HassEntity) => boolean;
|
||||
|
||||
@property({ type: Boolean }) public disabled?: boolean;
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
@property({ type: Boolean }) public required?: boolean;
|
||||
@property({ type: Boolean }) public required = false;
|
||||
|
||||
@state() private _opened?: boolean;
|
||||
|
||||
|
|
|
@ -56,9 +56,9 @@ export class HaAreasPicker extends SubscribeMixin(LitElement) {
|
|||
@property({ attribute: "pick-area-label" })
|
||||
public pickAreaLabel?: string;
|
||||
|
||||
@property({ type: Boolean }) public disabled?: boolean;
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
@property({ type: Boolean }) public required?: boolean;
|
||||
@property({ type: Boolean }) public required = false;
|
||||
|
||||
protected render() {
|
||||
if (!this.hass) {
|
||||
|
|
|
@ -50,7 +50,7 @@ export class HaDateInput extends LitElement {
|
|||
|
||||
@property() public helper?: string;
|
||||
|
||||
@property({ type: Boolean }) public canClear?: boolean;
|
||||
@property({ type: Boolean }) public canClear = false;
|
||||
|
||||
render() {
|
||||
return html`<ha-textfield
|
||||
|
|
|
@ -33,7 +33,7 @@ export class HaGauge extends LitElement {
|
|||
|
||||
@property() public locale!: FrontendLocaleData;
|
||||
|
||||
@property({ type: Boolean }) public needle?: boolean;
|
||||
@property({ type: Boolean }) public needle = false;
|
||||
|
||||
@property() public levels?: LevelDefinition[];
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import "./ha-svg-icon";
|
|||
class HaNavigationList extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public pages!: PageNavigation[];
|
||||
|
||||
|
|
|
@ -10,9 +10,9 @@ import "./ha-icon-button";
|
|||
@customElement("ha-select")
|
||||
export class HaSelect extends SelectBase {
|
||||
// @ts-ignore
|
||||
@property({ type: Boolean }) public icon?: boolean;
|
||||
@property({ type: Boolean }) public icon = false;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public clearable?: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public clearable = false;
|
||||
|
||||
protected override render() {
|
||||
return html`
|
||||
|
|
|
@ -90,9 +90,9 @@ export class HaServiceControl extends ReorderModeMixin(LitElement) {
|
|||
|
||||
@property({ reflect: true, type: Boolean }) public narrow!: boolean;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced?: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public hidePicker?: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public hidePicker = false;
|
||||
|
||||
@state() private _value!: this["value"];
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import { customElement, property } from "lit/decorators";
|
|||
|
||||
@customElement("ha-settings-row")
|
||||
export class HaSettingsRow extends LitElement {
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean, attribute: "three-line" })
|
||||
public threeLine = false;
|
||||
|
|
|
@ -189,7 +189,7 @@ const computePanels = memoizeOne(
|
|||
class HaSidebar extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -6,15 +6,15 @@ import { mainWindow } from "../common/dom/get_main_window";
|
|||
|
||||
@customElement("ha-textfield")
|
||||
export class HaTextField extends TextFieldBase {
|
||||
@property({ type: Boolean }) public invalid?: boolean;
|
||||
@property({ type: Boolean }) public invalid = false;
|
||||
|
||||
@property({ attribute: "error-message" }) public errorMessage?: string;
|
||||
|
||||
// @ts-ignore
|
||||
@property({ type: Boolean }) public icon?: boolean;
|
||||
@property({ type: Boolean }) public icon = false;
|
||||
|
||||
// @ts-ignore
|
||||
@property({ type: Boolean }) public iconTrailing?: boolean;
|
||||
@property({ type: Boolean }) public iconTrailing = false;
|
||||
|
||||
@property() public autocomplete?: string;
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ export class HaLocationsEditor extends LitElement {
|
|||
|
||||
@property({ type: Number }) public zoom = 16;
|
||||
|
||||
@property({ type: Boolean }) public darkMode?: boolean;
|
||||
@property({ type: Boolean }) public darkMode = false;
|
||||
|
||||
@state() private _locationMarkers?: Record<string, Marker | Circle>;
|
||||
|
||||
|
|
|
@ -58,9 +58,9 @@ export class HaMap extends ReactiveElement {
|
|||
|
||||
@property({ type: Boolean }) public interactiveZones = false;
|
||||
|
||||
@property({ type: Boolean }) public fitZones?: boolean;
|
||||
@property({ type: Boolean }) public fitZones = false;
|
||||
|
||||
@property({ type: Boolean }) public darkMode?: boolean;
|
||||
@property({ type: Boolean }) public darkMode = false;
|
||||
|
||||
@property({ type: Number }) public zoom = 14;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { TraceExtended } from "../../data/trace";
|
|||
export class HaTraceLogbook extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public trace!: TraceExtended;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ const TRACE_PATH_TABS = [
|
|||
export class HaTracePathDetails extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public trace!: TraceExtended;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ interface BranchConfig {
|
|||
export class HatGraphBranch extends LitElement {
|
||||
@property({ reflect: true, type: Boolean }) disabled?: boolean;
|
||||
|
||||
@property({ type: Boolean }) selected?: boolean;
|
||||
@property({ type: Boolean }) selected = false;
|
||||
|
||||
@property({ type: Boolean }) start = false;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ export class HomeAssistantMain extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route?: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _sidebarEditMode = false;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class IntegrationBadge extends LitElement {
|
|||
|
||||
@property() public title!: string;
|
||||
|
||||
@property({ type: Boolean }) public darkOptimizedIcon?: boolean;
|
||||
@property({ type: Boolean }) public darkOptimizedIcon = false;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public clickable = false;
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class OnboardingWelcomeLinks extends LitElement {
|
|||
|
||||
@property() public localize!: LocalizeFunc;
|
||||
|
||||
@property({ type: Boolean }) public mobileApp!: boolean;
|
||||
@property({ type: Boolean }) public mobileApp = false;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`<a
|
||||
|
|
|
@ -19,7 +19,7 @@ class OnboardingWelcome extends LitElement {
|
|||
|
||||
@property() public localize!: LocalizeFunc;
|
||||
|
||||
@property({ type: Boolean }) public supervisor?: boolean;
|
||||
@property({ type: Boolean }) public supervisor = false;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
|
|
|
@ -65,11 +65,11 @@ class HaConfigAreaPage extends SubscribeMixin(LitElement) {
|
|||
|
||||
@property() public areaId!: string;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced!: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@state() public _areas!: AreaRegistryEntry[];
|
||||
|
||||
|
|
|
@ -73,9 +73,9 @@ type AutomationItem = AutomationEntity & {
|
|||
class HaAutomationPicker extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -58,9 +58,9 @@ export class HaAutomationTrace extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public automations!: AutomationEntity[];
|
||||
|
||||
@property({ type: Boolean }) public isWide?: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ import "./trigger/ha-automation-trigger";
|
|||
export class HaManualAutomationEditor extends ReorderModeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
|
|
|
@ -39,9 +39,9 @@ import { fileDownload } from "../../../util/file_download";
|
|||
class HaConfigBackup extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -80,9 +80,9 @@ const createNewFunctions = {
|
|||
class HaBlueprintOverview extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ export class CloudWebhooks extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public cloudStatus?: CloudStatusLoggedIn;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _cloudHooks?: {
|
||||
[webhookId: string]: CloudWebhook;
|
||||
|
|
|
@ -10,7 +10,7 @@ class HaConfigSectionAnalytics extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
|
|
|
@ -34,7 +34,7 @@ import type { HomeAssistant, ValueChangedEvent } from "../../../types";
|
|||
class HaConfigSectionGeneral extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _submitting = false;
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import { showJoinBetaDialog } from "./updates/show-dialog-join-beta";
|
|||
class HaConfigSectionUpdates extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _showSkipped = false;
|
||||
|
||||
|
|
|
@ -32,11 +32,11 @@ class HaConfigSystemNavigation extends LitElement {
|
|||
@property({ type: Boolean, reflect: true })
|
||||
public narrow!: boolean;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ attribute: false }) public cloudStatus?: CloudStatus;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced!: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@state() private _latestBackupDate?: string;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import type { HomeAssistant } from "../../../types";
|
|||
class HaConfigNavigation extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public pages!: PageNavigation[];
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import type { HomeAssistant } from "../../../types";
|
|||
class HaConfigUpdates extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public updateEntities?: UpdateEntity[];
|
||||
|
||||
|
|
|
@ -116,11 +116,11 @@ export class HaConfigDevicePage extends LitElement {
|
|||
|
||||
@property() public deviceId!: string;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced!: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@state() private _related?: RelatedResult;
|
||||
|
||||
|
|
|
@ -35,11 +35,11 @@ const INITIAL_CONFIG: EnergyPreferences = {
|
|||
class HaConfigEnergy extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced!: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -83,9 +83,9 @@ export interface EntityRow extends StateEntity {
|
|||
export class HaConfigEntities extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ const DATA_SET_CONFIG = {
|
|||
class HaConfigHardware extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _error?: { code: string; message: string };
|
||||
|
||||
|
|
|
@ -88,11 +88,11 @@ const PAGES = [
|
|||
class HaConfigInfo extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced!: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -110,11 +110,11 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
|||
|
||||
@property() public domain!: string;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced!: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@property() public configEntries?: ConfigEntry[];
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ const groupByIntegration = (
|
|||
class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ export interface ConfigEntryExtended extends ConfigEntry {
|
|||
class HaConfigIntegrations extends SubscribeMixin(HassRouterPage) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import { HomeAssistant } from "../../../../../types";
|
|||
export class MatterConfigDashboard extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _error?: string;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ const qosLevel = ["0", "1", "2"];
|
|||
export class MQTTConfigPanel extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@storage({
|
||||
key: "panel-dev-mqtt-topic-ls",
|
||||
|
|
|
@ -65,7 +65,7 @@ interface ThreadNetwork {
|
|||
export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _configEntryId: string | null = null;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class ZHAAddDevicesPage extends LitElement {
|
|||
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide?: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ attribute: false }) public route?: Route;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import type { ZHADeviceEndpointDataTable } from "./zha-device-endpoint-data-tabl
|
|||
export class ZHAAddGroupPage extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Array }) public deviceEndpoints: ZHADeviceEndpoint[] = [];
|
||||
|
||||
|
|
|
@ -72,9 +72,9 @@ class ZHAConfigDashboard extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property() public configEntryId?: string;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class ZHADeviceCard extends SubscribeMixin(LitElement) {
|
|||
|
||||
@property() public device?: ZHADevice;
|
||||
|
||||
@property({ type: Boolean }) public narrow?: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _entities: EntityRegistryEntry[] = [];
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ export interface DeviceRowData extends DataTableRowData {
|
|||
class ZHADeviceNeighbors extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property() public device: ZHADevice | undefined;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class ZHADevicePairingStatusCard extends LitElement {
|
|||
|
||||
@property() public device?: ZHADevice;
|
||||
|
||||
@property({ type: Boolean }) public narrow?: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _showHelp = false;
|
||||
|
||||
|
|
|
@ -41,9 +41,9 @@ export class ZHAGroupPage extends LitElement {
|
|||
|
||||
@property({ type: Number }) public groupId!: number;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Array }) public deviceEndpoints: ZHADeviceEndpoint[] = [];
|
||||
|
||||
|
|
|
@ -36,9 +36,9 @@ export class ZHAGroupsDashboard extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property() public _groups: ZHAGroup[] = [];
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@ export class ZHANetworkVisualizationPage extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property()
|
||||
public zoomedDeviceIdFromURL?: string;
|
||||
|
|
|
@ -61,9 +61,9 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property() public configEntryId!: string;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ class ZWaveJSLogs extends SubscribeMixin(LitElement) {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property() public configEntryId!: string;
|
||||
|
||||
|
|
|
@ -71,9 +71,9 @@ class ZWaveJSNodeConfig extends SubscribeMixin(LitElement) {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property() public configEntryId?: string;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ class ZWaveJSProvisioned extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property() public configEntryId!: string;
|
||||
|
||||
|
|
|
@ -48,9 +48,9 @@ const logProviders: LogProvider[] = [
|
|||
export class HaConfigLogs extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ class HaConfigSectionNetwork extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
|
|
|
@ -24,7 +24,7 @@ import type { HomeAssistant } from "../../../types";
|
|||
export class HassioHostname extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _processing = false;
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ import { showSystemInformationDialog } from "./show-system-information-dialog";
|
|||
class HaConfigRepairsDashboard extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _repairsIssues: RepairsIssue[] = [];
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ import { showRepairsIssueDialog } from "./show-repair-issue-dialog";
|
|||
class HaConfigRepairs extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false })
|
||||
public repairsIssues?: RepairsIssue[];
|
||||
|
|
|
@ -24,7 +24,7 @@ import { ReorderModeMixin } from "../../../state/reorder-mode-mixin";
|
|||
export class HaBlueprintScriptEditor extends ReorderModeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ reflect: true, type: Boolean }) public narrow!: boolean;
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
|
|||
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public entityRegistry!: EntityRegistryEntry[];
|
||||
|
||||
|
|
|
@ -49,9 +49,9 @@ export class HaScriptTrace extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public scripts!: ScriptEntity[];
|
||||
|
||||
@property({ type: Boolean }) public isWide?: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@ import type HaScriptFields from "./ha-script-fields";
|
|||
export class HaManualScriptEditor extends ReorderModeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ type: Boolean }) public disabled = false;
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class HaConfigSectionStorage extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _error?: { code: string; message: string };
|
||||
|
||||
|
|
|
@ -30,9 +30,9 @@ import { showUserDetailDialog } from "./show-dialog-user-detail";
|
|||
export class HaConfigUsers extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ interface AssistDeviceExtra extends AssistDevice {
|
|||
class AssistDevicesPage extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _pipelines: Record<string, AssistPipeline> = {};
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import "./assist-pipeline-run-debug";
|
|||
export class AssistDebug extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import "./assist-render-pipeline-events";
|
|||
export class AssistPipelineDebug extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import "./assist-render-pipeline-run";
|
|||
export class AssistPipelineRunDebug extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _pipelineRuns: PipelineRun[] = [];
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@ import "../../../../components/ha-svg-icon";
|
|||
export class VoiceAssistantExposeAssistantIcon extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public unsupported!: boolean;
|
||||
@property({ type: Boolean }) public unsupported = false;
|
||||
|
||||
@property({ type: Boolean }) public manual?: boolean;
|
||||
@property({ type: Boolean }) public manual = false;
|
||||
|
||||
@property() public assistant?:
|
||||
| "conversation"
|
||||
|
|
|
@ -68,9 +68,9 @@ export class VoiceAssistantsExpose extends LitElement {
|
|||
|
||||
@property({ attribute: false }) public cloudStatus?: CloudStatus;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ type SentenceParsingResult = {
|
|||
class HaPanelDevAssist extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() supportedLanguages?: string[];
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import "./ha-debug-connection-row";
|
|||
class HaPanelDevDebug extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
protected render() {
|
||||
return html`
|
||||
|
|
|
@ -15,7 +15,7 @@ import { fireEvent } from "../../../common/dom/fire_event";
|
|||
class HaPanelDevEvent extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _eventType: string = "";
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ import { documentationUrl } from "../../../util/documentation-url";
|
|||
class HaPanelDevService extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _uiAvailable = true;
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ type DisplayedStatisticData = StatisticData & {
|
|||
class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@state() private _data: StatisticData[] = [] as StatisticsMetaData[];
|
||||
|
||||
|
|
|
@ -28,13 +28,13 @@ type ReloadableDomain = Exclude<
|
|||
export class DeveloperYamlConfig extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean }) public isWide!: boolean;
|
||||
@property({ type: Boolean }) public isWide = false;
|
||||
|
||||
@property({ type: Boolean }) public narrow!: boolean;
|
||||
@property({ type: Boolean }) public narrow = false;
|
||||
|
||||
@property({ attribute: false }) public route!: Route;
|
||||
|
||||
@property({ type: Boolean }) public showAdvanced!: boolean;
|
||||
@property({ type: Boolean }) public showAdvanced = false;
|
||||
|
||||
@state() private _validating = false;
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ const ENERGY_LOVELACE_CONFIG: LovelaceConfig = {
|
|||
class PanelEnergy extends LitElement {
|
||||
@property({ attribute: false }) public hass!: HomeAssistant;
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow!: boolean;
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@state() private _viewIndex = 0;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue