From a06f09831206b4f7ef861ac3214296b10b3fb0a1 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:20:53 +0200 Subject: [PATCH] Fix dangerous-default-value warnings in switchbot tests (#119575) --- tests/components/switchbot/__init__.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/components/switchbot/__init__.py b/tests/components/switchbot/__init__.py index c824a16d952..b2a8445546e 100644 --- a/tests/components/switchbot/__init__.py +++ b/tests/components/switchbot/__init__.py @@ -36,19 +36,13 @@ def patch_async_setup_entry(return_value=True): ) -async def init_integration( - hass: HomeAssistant, - *, - data: dict = ENTRY_CONFIG, - skip_entry_setup: bool = False, -) -> MockConfigEntry: +async def init_integration(hass: HomeAssistant) -> MockConfigEntry: """Set up the Switchbot integration in Home Assistant.""" - entry = MockConfigEntry(domain=DOMAIN, data=data) + entry = MockConfigEntry(domain=DOMAIN, data=ENTRY_CONFIG) entry.add_to_hass(hass) - if not skip_entry_setup: - await hass.config_entries.async_setup(entry.entry_id) - await hass.async_block_till_done() + await hass.config_entries.async_setup(entry.entry_id) + await hass.async_block_till_done() return entry