From 4a0a3e76c6ad5b1684c2fc882f1db571045fb0d0 Mon Sep 17 00:00:00 2001 From: David Straub Date: Sun, 24 Nov 2019 13:54:32 +0100 Subject: [PATCH] Fix incorrect instantiation of ConfigEntryAuth related to #43 --- custom_components/homeconnect/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/homeconnect/__init__.py b/custom_components/homeconnect/__init__.py index 86d84ac..3bd548e 100644 --- a/custom_components/homeconnect/__init__.py +++ b/custom_components/homeconnect/__init__.py @@ -73,9 +73,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): hass, entry ) - session = config_entry_oauth2_flow.OAuth2Session(hass, entry, implementation) - - hc = api.ConfigEntryAuth(hass, entry, session) + hc = api.ConfigEntryAuth(hass, entry, implementation) hass.data[DOMAIN][entry.entry_id] = hc