From 44bbd9396db196752e7ade1ec9d14400303083e8 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Sun, 23 May 2021 13:08:21 +0100 Subject: [PATCH] Fix typing in config flow helper (#50994) --- homeassistant/helpers/config_entry_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/config_entry_flow.py b/homeassistant/helpers/config_entry_flow.py index 1a29f8a1752..05365b85645 100644 --- a/homeassistant/helpers/config_entry_flow.py +++ b/homeassistant/helpers/config_entry_flow.py @@ -9,7 +9,7 @@ from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers.typing import UNDEFINED, DiscoveryInfoType, UndefinedType -DiscoveryFunctionType = Callable[[], Union[Awaitable[bool], bool]] +DiscoveryFunctionType = Callable[[HomeAssistant], Union[Awaitable[bool], bool]] _LOGGER = logging.getLogger(__name__)