Skip to content

Commit

Permalink
Fix for failure to update if updated by another card
Browse files Browse the repository at this point in the history
  • Loading branch information
gadgetchnnel committed May 17, 2023
1 parent 06f7410 commit 0d04940
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion lovelace-text-input-row.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
const LitElement = Object.getPrototypeOf(customElements.get("ha-panel-lovelace"));
const html = LitElement.prototype.html;
const css = LitElement.prototype.css;

class TextInputRow extends LitElement {

static get properties() {
return {
label: { type: String },
value: { type: String },
minlength: { type: Number },
maxlength: { type: Number },
pattern: { type: String },
mode: { type: String },
stateObj: { type: Object },
_config: { type: Object },
};
}

constructor() {
super();
this.label = '';
this.value = '';
this.minlength = 0;
this.maxlength = Infinity;
this.pattern = '';
this.mode = '';
this.stateObj = null;
this._config = null;
}

render() {
return html`
<paper-input
Expand Down

0 comments on commit 0d04940

Please sign in to comment.