Skip to content

Commit

Permalink
rename option
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Oct 25, 2023
1 parent 39e1aec commit 21cc625
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/ha-selector/ha-selector-ui-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class HaSelectorUiAction extends LitElement {
.hass=${this.hass}
.config=${this.value}
.actions=${this.selector.ui_action?.actions}
.defaultAction=${this.selector.ui_action?.default}
.defaultAction=${this.selector.ui_action?.default_action}
.tooltipText=${this.helper}
@value-changed=${this._valueChanged}
></hui-action-editor>
Expand Down
2 changes: 1 addition & 1 deletion src/data/selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export interface TTSVoiceSelector {
export interface UiActionSelector {
ui_action: {
actions?: UiAction[];
default?: UiAction;
default_action?: UiAction;
} | null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ export class HuiButtonCardEditor
name: "tap_action",
selector: {
ui_action: {
default: getEntityDefaultButtonAction(entityId),
default_action: getEntityDefaultButtonAction(entityId),
},
},
},
{
name: "hold_action",
selector: {
ui_action: {
default: "more-info",
default_action: "more-info",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ export class HuiTileCardEditor
name: "tap_action",
selector: {
ui_action: {
default: "more-info",
default_action: "more-info",
},
},
},
{
name: "icon_tap_action",
selector: {
ui_action: {
default: entityId
default_action: entityId
? getEntityDefaultTileIconAction(entityId)
: "more-info",
},
Expand Down

0 comments on commit 21cc625

Please sign in to comment.