Skip to content

Commit

Permalink
Merge pull request #105 from esphome/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Jun 8, 2024
2 parents b0f21f0 + f264a22 commit 13058bf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion packages/v2/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class ActionRenderer {
const val = (<HTMLTextAreaElement>e.target)?.value;
this.actioner?.restAction(
entity,
`${action}?${opt}=${val}`
`${action}?${opt}=${val.replace('T', ' ')}`
);
}}"
/>
Expand Down Expand Up @@ -460,6 +460,19 @@ class ActionRenderer {
`;
}

render_datetime() {
if (!this.entity) return;
return html`
${this._datetime(
this.entity,
"datetime-local",
"set",
"value",
this.entity.value,
)}
`;
}

render_text() {
if (!this.entity) return;
return this._textinput(
Expand Down
15 changes: 14 additions & 1 deletion packages/v3/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class ActionRenderer {
const val = (<HTMLTextAreaElement>e.target)?.value;
this.actioner?.restAction(
entity,
`${action}?${opt}=${val}`
`${action}?${opt}=${val.replace('T', ' ')}`
);
}}"
/>
Expand Down Expand Up @@ -481,6 +481,19 @@ class ActionRenderer {
`;
}

render_datetime() {
if (!this.entity) return;
return html`
${this._datetime(
this.entity,
"datetime-local",
"set",
"value",
this.entity.value,
)}
`;
}

render_switch() {
if (!this.entity) return;
if (this.entity.assumed_state)
Expand Down

0 comments on commit 13058bf

Please sign in to comment.