mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Add enable_millisecond to duration selector (#21498)
Add enable_milliseconds to duration selector
This commit is contained in:
parent
e8dd835eeb
commit
0a095c6f21
@ -30,6 +30,7 @@ export class HaTimeDuration extends LitElement {
|
||||
.disabled=${this.disabled}
|
||||
.required=${this.required}
|
||||
?enableDay=${this.selector.duration?.enable_day}
|
||||
?enableMillisecond=${this.selector.duration?.enable_millisecond}
|
||||
></ha-duration-input>
|
||||
`;
|
||||
}
|
||||
|
@ -57,6 +57,10 @@ const SELECTOR_SCHEMAS = {
|
||||
name: "enable_day",
|
||||
selector: { boolean: {} },
|
||||
},
|
||||
{
|
||||
name: "enable_millisecond",
|
||||
selector: { boolean: {} },
|
||||
},
|
||||
] as const,
|
||||
entity: [
|
||||
{
|
||||
|
@ -203,6 +203,7 @@ export interface LegacyDeviceSelector {
|
||||
export interface DurationSelector {
|
||||
duration: {
|
||||
enable_day?: boolean;
|
||||
enable_millisecond?: boolean;
|
||||
} | null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user