diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 29fa1daf47c..92f2473d3ee 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -1692,20 +1692,24 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = { TypeHintMatch( function_name="camera_entity", return_type=["str", None], + mandatory=True, ), TypeHintMatch( function_name="confidence", return_type=["float", None], + mandatory=True, ), TypeHintMatch( function_name="device_class", return_type=["ImageProcessingDeviceClass", None], + mandatory=True, ), TypeHintMatch( function_name="process_image", arg_types={1: "bytes"}, return_type=None, has_async_counterpart=True, + mandatory=True, ), ], ), @@ -1720,6 +1724,7 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = { }, return_type=None, has_async_counterpart=True, + mandatory=True, ), ], ),