diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 9607c0222d9bf2..e76db49fe72b44 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -711,6 +711,7 @@ class ClassTypeHintMatch: TypeHintMatch( function_name="icon", return_type=["str", None], + mandatory=True, ), TypeHintMatch( function_name="entity_picture",