From 03b4d2556445514e0ea525f6f67d702012c40d6a Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 6 Sep 2022 12:18:15 +0200 Subject: [PATCH] Add notify get_service to pylint checks (#77643) Add notify get_service to pylint checks (take 3) --- pylint/plugins/hass_enforce_type_hints.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 4eedca487ab..2a709c6debe 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -379,6 +379,18 @@ _FUNCTION_MATCH: dict[str, list[TypeHintMatch]] = { return_type=_Special.UNDEFINED, ), ], + "notify": [ + TypeHintMatch( + function_name="get_service", + arg_types={ + 0: "HomeAssistant", + 1: "ConfigType", + 2: "DiscoveryInfoType | None", + }, + return_type=_Special.UNDEFINED, + has_async_counterpart=True, + ), + ], } _CLASS_MATCH: dict[str, list[ClassTypeHintMatch]] = {