---
src/components/ha-time-input.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/ha-time-input.ts b/src/components/ha-time-input.ts
index 5287ea51d0ec..696dbef4aac5 100644
--- a/src/components/ha-time-input.ts
+++ b/src/components/ha-time-input.ts
@@ -61,7 +61,7 @@ export class HaTimeInput extends LitElement {
const eventValue = ev.detail.value;
const useAMPM = useAmPm(this.locale);
- let value;
+ let value: string | undefined;
// An undefined eventValue means the time selector is being cleared,
// the `value` variable will (intentionally) be left undefined.
From 5227541f72777b284a1a785ad5fb3eb24553772e Mon Sep 17 00:00:00 2001
From: schelv <13403863+schelv@users.noreply.github.com>
Date: Sat, 20 Jul 2024 12:35:00 +0200
Subject: [PATCH 8/9] improve label appearance
---
src/components/ha-base-time-input.ts | 239 ++++++++++++++-------------
1 file changed, 122 insertions(+), 117 deletions(-)
diff --git a/src/components/ha-base-time-input.ts b/src/components/ha-base-time-input.ts
index 6a80b2f4f0f2..7c9e75035229 100644
--- a/src/components/ha-base-time-input.ts
+++ b/src/components/ha-base-time-input.ts
@@ -133,138 +133,140 @@ export class HaBaseTimeInput extends LitElement {
${this.label
? html``
: ""}
-
-
- ${this.format === 24
- ? ""
- : html`
- AM
- PM
- `}
- ${this.helper
- ? html`${this.helper}`
- : ""}
`;
}
@@ -322,6 +324,9 @@ export class HaBaseTimeInput extends LitElement {
position: relative;
}
:host {
+ display: block;
+ }
+ .time-input-wrap-wrap {
display: flex;
}
.time-input-wrap {
From 274037e65230d0ac583ed76cc614ccd8738a27e7 Mon Sep 17 00:00:00 2001
From: schelv <13403863+schelv@users.noreply.github.com>
Date: Sat, 20 Jul 2024 13:48:36 +0200
Subject: [PATCH 9/9] remove the label values
---
src/components/ha-base-time-input.ts | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/ha-base-time-input.ts b/src/components/ha-base-time-input.ts
index 7c9e75035229..71870d27490d 100644
--- a/src/components/ha-base-time-input.ts
+++ b/src/components/ha-base-time-input.ts
@@ -79,27 +79,27 @@ export class HaBaseTimeInput extends LitElement {
/**
* Label for the day input
*/
- @property() dayLabel = "Day";
+ @property() dayLabel = "";
/**
* Label for the hour input
*/
- @property() hourLabel = "Hour";
+ @property() hourLabel = "";
/**
* Label for the min input
*/
- @property() minLabel = "Minute";
+ @property() minLabel = "";
/**
* Label for the sec input
*/
- @property() secLabel = "Second";
+ @property() secLabel = "";
/**
* Label for the milli sec input
*/
- @property() millisecLabel = "Milisecond";
+ @property() millisecLabel = "";
/**
* show the sec field