diff --git a/src/scheduler-card.ts b/src/scheduler-card.ts old mode 100644 new mode 100755 index 8053347..33ab4b6 --- a/src/scheduler-card.ts +++ b/src/scheduler-card.ts @@ -227,7 +227,7 @@ export class SchedulerCard extends SubscribeMixin(LitElement) { ...this.scheduleDisplayInfo, [schedule.schedule_id!]: getScheduleDisplayInfo(schedule, this._config!, this.hass!), }; - } catch (_e) {} + } catch (_e) { } if (!schedule || !isIncludedOrExcluded(schedule, this._config!)) { //schedule is not in the list, remove if it was in the list @@ -260,7 +260,7 @@ export class SchedulerCard extends SubscribeMixin(LitElement) { ...scheduleInfo, [schedules[e].schedule_id]: getScheduleDisplayInfo(schedules[e], this._config!, this.hass!), }; - } catch (_e) {} + } catch (_e) { } }); this.scheduleDisplayInfo = scheduleInfo; this.schedules = this.sortSchedules(schedules); @@ -326,37 +326,37 @@ export class SchedulerCard extends SubscribeMixin(LitElement) {
${this._config.title - ? typeof this._config.title == 'string' - ? this._config.title - : localize('ui.panel.common.title', getLocale(this.hass)) - : ''} + ? typeof this._config.title == 'string' + ? this._config.title + : localize('ui.panel.common.title', getLocale(this.hass)) + : ''}
${this.schedules.length && this._config.show_header_toggle - ? html` + ? html` ` - : ''} + : ''}
${this.renderRows()}
${this._config.show_add_button !== false - ? html` + ? html`
${!this.connectionError - ? html` + ? html` ${this.hass.localize('ui.components.area-picker.add_dialog.add')} + >${this.hass.localize('ui.common.add')} ` - : html` + : html` ${this.hass.localize('ui.common.refresh')} `}
` - : ''} + : ''} `; } @@ -391,16 +391,16 @@ export class SchedulerCard extends SubscribeMixin(LitElement) { ` @@ -410,8 +410,8 @@ export class SchedulerCard extends SubscribeMixin(LitElement) { @@ -449,9 +449,9 @@ export class SchedulerCard extends SubscribeMixin(LitElement) { - fireEvent(ev.target as HTMLElement, 'hass-more-info', { - entityId: schedule.entity_id, - })} + fireEvent(ev.target as HTMLElement, 'hass-more-info', { + entityId: schedule.entity_id, + })} >
this._editItemClick(schedule.schedule_id!)}> ${this.renderDisplayItems(schedule, displayInfo.primaryInfo)}