diff --git a/changedetectionio/api/Tags.py b/changedetectionio/api/Tags.py index ae09dfe2..0b001442 100644 --- a/changedetectionio/api/Tags.py +++ b/changedetectionio/api/Tags.py @@ -10,6 +10,21 @@ from . import auth from . import validate_openapi_request, strip_internal_api_fields +def validate_tag_colour(json_data): + """Return an error message when tag_colour is set to anything but a hex colour. + + The value is rendered into a