From bd795be0e985d0a6e907a61ea6f920cda42c5010 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:56:15 +0200 Subject: [PATCH] Cleanup device_class checks in pylint plugin (#76458) --- pylint/plugins/hass_enforce_type_hints.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index f7a109507d8..257f4fb3613 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -611,10 +611,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = { ClassTypeHintMatch( base_class="AlarmControlPanelEntity", matches=[ - TypeHintMatch( - function_name="device_class", - return_type=["str", None], - ), TypeHintMatch( function_name="code_format", return_type=["CodeFormat", None], @@ -1220,10 +1216,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = { ClassTypeHintMatch( base_class="FanEntity", matches=[ - TypeHintMatch( - function_name="device_class", - return_type=["str", None], - ), TypeHintMatch( function_name="percentage", return_type=["int", None], @@ -1428,10 +1420,6 @@ _INHERITANCE_MATCH: dict[str, list[ClassTypeHintMatch]] = { ClassTypeHintMatch( base_class="LockEntity", matches=[ - TypeHintMatch( - function_name="device_class", - return_type=["str", None], - ), TypeHintMatch( function_name="changed_by", return_type=["str", None],