Add enable_millisecond to duration selector (#21498)

Add enable_milliseconds to duration selector
This commit is contained in:
karwosts 2024-07-31 03:34:57 -07:00 committed by GitHub
parent e8dd835eeb
commit 0a095c6f21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export class HaTimeDuration extends LitElement {
.disabled=${this.disabled} .disabled=${this.disabled}
.required=${this.required} .required=${this.required}
?enableDay=${this.selector.duration?.enable_day} ?enableDay=${this.selector.duration?.enable_day}
?enableMillisecond=${this.selector.duration?.enable_millisecond}
></ha-duration-input> ></ha-duration-input>
`; `;
} }

View File

@ -57,6 +57,10 @@ const SELECTOR_SCHEMAS = {
name: "enable_day", name: "enable_day",
selector: { boolean: {} }, selector: { boolean: {} },
}, },
{
name: "enable_millisecond",
selector: { boolean: {} },
},
] as const, ] as const,
entity: [ entity: [
{ {

View File

@ -203,6 +203,7 @@ export interface LegacyDeviceSelector {
export interface DurationSelector { export interface DurationSelector {
duration: { duration: {
enable_day?: boolean; enable_day?: boolean;
enable_millisecond?: boolean;
} | null; } | null;
} }