From 577be70da9554993162de9c726b1404c93307b2a Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 1 Jun 2022 08:38:48 +0200 Subject: [PATCH] Add new method to pylint type-hint plugin (#72757) Enforce type hints on remove_config_entry_device --- pylint/plugins/hass_enforce_type_hints.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 24b32f2e238..f3dd7a106c6 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -88,6 +88,15 @@ _FUNCTION_MATCH: dict[str, list[TypeHintMatch]] = { }, return_type="bool", ), + TypeHintMatch( + function_name="async_remove_config_entry_device", + arg_types={ + 0: "HomeAssistant", + 1: "ConfigEntry", + 2: "DeviceEntry", + }, + return_type="bool", + ), ], "__any_platform__": [ TypeHintMatch(