From bfa2da32fc1276ca69823577e40946f13ca50b65 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:48:12 +0100 Subject: [PATCH] Mark geo_location entity type hints as mandatory (#163790) --- pylint/plugins/hass_enforce_type_hints.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index e4e0c9fd185..dbfec9f9112 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -1696,14 +1696,17 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = { TypeHintMatch( function_name="distance", return_type=["float", None], + mandatory=True, ), TypeHintMatch( function_name="latitude", return_type=["float", None], + mandatory=True, ), TypeHintMatch( function_name="longitude", return_type=["float", None], + mandatory=True, ), ], ),