From e5ac50fc57c3ab50f4a244969249b4d2e8c21cb5 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 6 Sep 2022 12:18:29 +0200 Subject: [PATCH] Add BaseNotificationService to pylint checks (#77663) * Add BaseNotificationService to pylint checks * Remove comment --- pylint/plugins/hass_enforce_type_hints.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 2a709c6debe..289f461c223 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -1873,6 +1873,20 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = { ], ), ], + "notify": [ + ClassTypeHintMatch( + base_class="BaseNotificationService", + matches=[ + TypeHintMatch( + function_name="send_message", + arg_types={1: "str"}, + kwargs_type="Any", + return_type=None, + has_async_counterpart=True, + ), + ], + ), + ], "remote": [ ClassTypeHintMatch( base_class="Entity",