From 93f92cb94265b7e648559aa8d858f0b0b896bf9f Mon Sep 17 00:00:00 2001 From: RFDarter Date: Fri, 7 Jun 2024 22:30:07 +0200 Subject: [PATCH 1/3] v3 support datetime-datetime (#103) --- packages/v3/src/esp-entity-table.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/v3/src/esp-entity-table.ts b/packages/v3/src/esp-entity-table.ts index 3b31e5b..4bc224b 100644 --- a/packages/v3/src/esp-entity-table.ts +++ b/packages/v3/src/esp-entity-table.ts @@ -302,7 +302,7 @@ class ActionRenderer { const val = (e.target)?.value; this.actioner?.restAction( entity, - `${action}?${opt}=${val}` + `${action}?${opt}=${val.replace('T', ' ')}` ); }}" /> @@ -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) From f264a22ec1d4065b7bd02ad834ea5483a5d90165 Mon Sep 17 00:00:00 2001 From: RFDarter Date: Fri, 7 Jun 2024 22:30:24 +0200 Subject: [PATCH 2/3] v2 support datetime-datetime (#104) --- packages/v2/src/esp-entity-table.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/v2/src/esp-entity-table.ts b/packages/v2/src/esp-entity-table.ts index 6191030..9cc1a30 100644 --- a/packages/v2/src/esp-entity-table.ts +++ b/packages/v2/src/esp-entity-table.ts @@ -302,7 +302,7 @@ class ActionRenderer { const val = (e.target)?.value; this.actioner?.restAction( entity, - `${action}?${opt}=${val}` + `${action}?${opt}=${val.replace('T', ' ')}` ); }}" /> @@ -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( From 726e7562ce51cc603d775da4f7648d5426b0a3cd Mon Sep 17 00:00:00 2001 From: Madelena Mak Date: Mon, 10 Jun 2024 06:28:57 -0400 Subject: [PATCH 3/3] New ESPHome logo! (#106) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- packages/v2/public/logo.svg | 25 ++++++++++++++++++++++++- packages/v3/public/logo.svg | 25 ++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/packages/v2/public/logo.svg b/packages/v2/public/logo.svg index f7267e9..f22981e 100644 --- a/packages/v2/public/logo.svg +++ b/packages/v2/public/logo.svg @@ -1 +1,24 @@ - \ No newline at end of file + + + + + + + + + + + + diff --git a/packages/v3/public/logo.svg b/packages/v3/public/logo.svg index 9cb8a9b..d867ce6 100644 --- a/packages/v3/public/logo.svg +++ b/packages/v3/public/logo.svg @@ -1 +1,24 @@ - + + + + + + + + + + + + \ No newline at end of file