Fix dangerous-default-value warnings in canary tests (#119578)
parent
b5d16bb3ca
commit
cadb6317bf
|
@ -54,12 +54,10 @@ def _patch_async_setup_entry(return_value=True):
|
||||||
async def init_integration(
|
async def init_integration(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
*,
|
*,
|
||||||
data: dict = ENTRY_CONFIG,
|
|
||||||
options: dict = ENTRY_OPTIONS,
|
|
||||||
skip_entry_setup: bool = False,
|
skip_entry_setup: bool = False,
|
||||||
) -> MockConfigEntry:
|
) -> MockConfigEntry:
|
||||||
"""Set up the Canary integration in Home Assistant."""
|
"""Set up the Canary 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:
|
if not skip_entry_setup:
|
||||||
|
|
Loading…
Reference in New Issue