From 74f68316c8d1d5ee9709b9929552f4030d5bf9c7 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 20 Nov 2024 18:37:07 +0100 Subject: [PATCH] Ensure a comment is required when making an exempt for the IQS (#131051) --- script/hassfest/quality_scale.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script/hassfest/quality_scale.py b/script/hassfest/quality_scale.py index c37283919cd..dda6c73946a 100644 --- a/script/hassfest/quality_scale.py +++ b/script/hassfest/quality_scale.py @@ -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 }