Add support for generic device (switch) to bond integration (#37837)

This commit is contained in:
Eugene Prystupa authored and GitHub committed 2020-07-14 08:54:33 -05:00
1 parent f0916aeb86
commit 515ad6164d
4 files changed
+152 -2

No files matched your search

+4 -1
View File
@@ -31,7 +31,9 @@ async def test_async_setup_entry_sets_up_hub_and_supported_domains(hass: HomeAss
"homeassistant.components.bond.fan.async_setup_entry"
) as mock_fan_async_setup_entry, patch(
"homeassistant.components.bond.light.async_setup_entry"
) as mock_light_async_setup_entry:
) as mock_light_async_setup_entry, patch(
"homeassistant.components.bond.switch.async_setup_entry"
) as mock_switch_async_setup_entry:
result = await setup_bond_entity(
hass,
config_entry,
@@ -61,6 +63,7 @@ async def test_async_setup_entry_sets_up_hub_and_supported_domains(hass: HomeAss
assert len(mock_cover_async_setup_entry.mock_calls) == 1
assert len(mock_fan_async_setup_entry.mock_calls) == 1
assert len(mock_light_async_setup_entry.mock_calls) == 1
assert len(mock_switch_async_setup_entry.mock_calls) == 1
async def test_unload_config_entry(hass: HomeAssistant):