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, ), ], ),