Skip to content

Commit

Permalink
nullish coalesce touchpad direction subconfigs to fix error in mousep…
Browse files Browse the repository at this point in the history
…ad setValue
  • Loading branch information
Nerwyn committed Dec 8, 2024
1 parent 395291e commit 510ac82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/universal-remote-card.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/classes/base-remote-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ export class BaseRemoteElement extends LitElement {

setValue() {
this.entityId = this.renderTemplate(
this.config.entity_id ?? '',
this.config.entity_id as string,
) as string;

this.unitOfMeasurement =
Expand Down
8 changes: 4 additions & 4 deletions src/classes/remote-touchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,15 @@ export class RemoteTouchpad extends BaseRemoteElement {
<remote-icon-label
id="up"
.hass=${this.hass}
.config=${this.config.up}
.config=${this.config.up ?? {}}
.icons=${this.icons}
></remote-icon-label>
</div>
<div class="toucharea-row">
<remote-icon-label
id="left"
.hass=${this.hass}
.config=${this.config.left}
.config=${this.config.left ?? {}}
.icons=${this.icons}
></remote-icon-label>
<remote-icon-label
Expand All @@ -339,15 +339,15 @@ export class RemoteTouchpad extends BaseRemoteElement {
<remote-icon-label
id="right"
.hass=${this.hass}
.config=${this.config.right}
.config=${this.config.right ?? {}}
.icons=${this.icons}
></remote-icon-label>
</div>
<div class="toucharea-row">
<remote-icon-label
id="down"
.hass=${this.hass}
.config=${this.config.down}
.config=${this.config.down ?? {}}
.icons=${this.icons}
></remote-icon-label>
</div>
Expand Down

0 comments on commit 510ac82

Please sign in to comment.