From 5f2567cd438382cbdd47ea83e5341f86faecca59 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 10 Sep 2022 23:46:30 +0200 Subject: [PATCH] Use alphabetical order for platforms in pylint plugin (#78126) --- pylint/plugins/hass_enforce_type_hints.py | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 1cfb36f9398..80ec054159c 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -1816,6 +1816,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, + ), + ], + ), + ], "number": [ ClassTypeHintMatch( base_class="Entity", @@ -1882,20 +1896,6 @@ _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",