Fix mysensors mqtt integration setup guard (#49423)

This commit is contained in:
Martin Hjelmare 2021-04-20 18:21:38 +02:00 committed by GitHub
parent 20ead7902a
commit 410f0e3604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 58 additions and 14 deletions

View file

@ -227,12 +227,14 @@ from homeassistant.setup import async_setup_component
)
async def test_import(
hass: HomeAssistantType,
mqtt: None,
config: ConfigType,
expected_calls: int,
expected_to_succeed: bool,
expected_config_flow_user_input: dict[str, any],
):
) -> None:
"""Test importing a gateway."""
await async_setup_component(hass, "persistent_notification", {})
with patch("sys.platform", "win32"), patch(
"homeassistant.components.mysensors.config_flow.try_connect", return_value=True
), patch(