Skip to content

Commit

Permalink
v3 support datetime-datetime (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
RFDarter authored Jun 7, 2024
1 parent d98bd28 commit 93f92cb
Showing 1 changed file with 14 additions and 1 deletion.
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 93f92cb

Please sign in to comment.