mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix dangerous-default-value warnings in ezviz tests (#119589)
This commit is contained in:
parent
75e0aee8fc
commit
ed52ff3076
@ -90,18 +90,11 @@ def _patch_async_setup_entry(return_value=True):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
async def init_integration(
|
async def init_integration(hass: HomeAssistant) -> MockConfigEntry:
|
||||||
hass: HomeAssistant,
|
|
||||||
*,
|
|
||||||
data: dict = ENTRY_CONFIG,
|
|
||||||
options: dict = ENTRY_OPTIONS,
|
|
||||||
skip_entry_setup: bool = False,
|
|
||||||
) -> MockConfigEntry:
|
|
||||||
"""Set up the EZVIZ integration in Home Assistant."""
|
"""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)
|
entry.add_to_hass(hass)
|
||||||
|
|
||||||
if not skip_entry_setup:
|
|
||||||
await hass.config_entries.async_setup(entry.entry_id)
|
await hass.config_entries.async_setup(entry.entry_id)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user