From a791797a6f891ccafb72b0c3815a99ad1ddb29d0 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 20 Feb 2026 22:48:56 +0100 Subject: [PATCH] Mark entity icon type hints as mandatory (#163617) --- pylint/plugins/hass_enforce_type_hints.py | 1 + 1 file changed, 1 insertion(+) 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",