mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Ensure a comment is required when making an exempt for the IQS (#131051)
This commit is contained in:
@@ -73,10 +73,16 @@ SCHEMA = vol.Schema(
|
|||||||
vol.In(["todo", "done"]),
|
vol.In(["todo", "done"]),
|
||||||
vol.Schema(
|
vol.Schema(
|
||||||
{
|
{
|
||||||
vol.Required("status"): vol.In(["todo", "done", "exempt"]),
|
vol.Required("status"): vol.In(["todo", "done"]),
|
||||||
vol.Optional("comment"): str,
|
vol.Optional("comment"): str,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
vol.Schema(
|
||||||
|
{
|
||||||
|
vol.Required("status"): "exempt",
|
||||||
|
vol.Required("comment"): str,
|
||||||
|
}
|
||||||
|
),
|
||||||
)
|
)
|
||||||
for rule in RULES
|
for rule in RULES
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user