From 524832ceaf07afa5c6e6550ae687cd52a3dd1301 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 12 Apr 2023 04:29:49 +0200 Subject: [PATCH] Fix config entry unload in withings tests (#91210) --- tests/components/withings/common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/components/withings/common.py b/tests/components/withings/common.py index afde266e8b9..e5c246dc95e 100644 --- a/tests/components/withings/common.py +++ b/tests/components/withings/common.py @@ -20,7 +20,6 @@ from homeassistant import data_entry_flow import homeassistant.components.api as api from homeassistant.components.homeassistant import DOMAIN as HA_DOMAIN import homeassistant.components.webhook as webhook -from homeassistant.components.withings import async_unload_entry from homeassistant.components.withings.common import ( ConfigEntryWithingsApi, DataManager, @@ -290,7 +289,7 @@ class ComponentFactory: config_entries = get_config_entries_for_user_id(self._hass, profile.user_id) for config_entry in config_entries: - await async_unload_entry(self._hass, config_entry) + await config_entry.async_unload(self._hass) await self._hass.async_block_till_done()