mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Add enable_day to duration selector (#68705)
This commit is contained in:
@@ -207,7 +207,11 @@ class DurationSelector(Selector):
|
||||
|
||||
selector_type = "duration"
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema({})
|
||||
CONFIG_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Optional("enable_day"): cv.boolean,
|
||||
}
|
||||
)
|
||||
|
||||
def __call__(self, data: Any) -> dict[str, float]:
|
||||
"""Validate the passed selection."""
|
||||
|
||||
Reference in New Issue
Block a user