Fix days missing from ha-base-time-input _valueChanged (#14910)

* Fix days missing from ha-base-time-input _valueChanged

* style change
This commit is contained in:
karwosts 2022-12-28 21:06:48 -08:00 committed by GitHub
parent 5c2fcd7f9b
commit a9378abe31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,6 +266,9 @@ export class HaBaseTimeInput extends LitElement {
seconds: this.seconds,
milliseconds: this.milliseconds,
};
if (this.enableDay) {
value.days = this.days;
}
if (this.format === 12) {
value.amPm = this.amPm;
}