From f19068f7de5b46f598efda4457b9ca83e950e4ea Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 6 Mar 2026 15:15:05 +0100 Subject: [PATCH] Mark device_info type hint as mandatory (#164951) --- 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 1cd47c78899..b8dfe4ef3f5 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -698,6 +698,7 @@ _ENTITY_MATCH: list[TypeHintMatch] = [ TypeHintMatch( function_name="device_info", return_type=["DeviceInfo", None], + mandatory=True, ), TypeHintMatch( function_name="device_class",