From ed52ff3076108183a6f8e3f9a028cdea6f65e242 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 13 Jun 2024 17:09:26 +0200 Subject: [PATCH] Fix dangerous-default-value warnings in ezviz tests (#119589) --- tests/components/ezviz/__init__.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tests/components/ezviz/__init__.py b/tests/components/ezviz/__init__.py index 7872cf37b68..9fc297be099 100644 --- a/tests/components/ezviz/__init__.py +++ b/tests/components/ezviz/__init__.py @@ -90,19 +90,12 @@ def _patch_async_setup_entry(return_value=True): ) -async def init_integration( - hass: HomeAssistant, - *, - data: dict = ENTRY_CONFIG, - options: dict = ENTRY_OPTIONS, - skip_entry_setup: bool = False, -) -> MockConfigEntry: +async def init_integration(hass: HomeAssistant) -> MockConfigEntry: """Set up the EZVIZ integration in Home Assistant.""" - entry = MockConfigEntry(domain=DOMAIN, data=data, options=options) + entry = MockConfigEntry(domain=DOMAIN, data=ENTRY_CONFIG, options=ENTRY_OPTIONS) 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