Ensure a comment is required when making an exempt for the IQS (#131051)

This commit is contained in:
Franck Nijhof
2024-11-20 18:37:07 +01:00
committed by GitHub
parent 771952d292
commit 74f68316c8

View File

@ -73,10 +73,16 @@ SCHEMA = vol.Schema(
vol.In(["todo", "done"]),
vol.Schema(
{
vol.Required("status"): vol.In(["todo", "done", "exempt"]),
vol.Required("status"): vol.In(["todo", "done"]),
vol.Optional("comment"): str,
}
),
vol.Schema(
{
vol.Required("status"): "exempt",
vol.Required("comment"): str,
}
),
)
for rule in RULES
}