Add basic support for lights in bond integration (#37802)

This commit is contained in:
Eugene Prystupa authored and GitHub committed 2020-07-12 18:45:47 -05:00
1 parent b63f882c3f
commit f32f73a7d1
5 files changed
+173 -2

No files matched your search

+4 -1
View File
@@ -29,7 +29,9 @@ async def test_async_setup_entry_sets_up_hub_and_supported_domains(hass: HomeAss
"homeassistant.components.bond.cover.async_setup_entry"
) as mock_cover_async_setup_entry, patch(
"homeassistant.components.bond.fan.async_setup_entry"
) as mock_fan_async_setup_entry:
) as mock_fan_async_setup_entry, patch(
"homeassistant.components.bond.light.async_setup_entry"
) as mock_light_async_setup_entry:
result = await setup_bond_entity(
hass,
config_entry,
@@ -58,6 +60,7 @@ async def test_async_setup_entry_sets_up_hub_and_supported_domains(hass: HomeAss
# verify supported domains are setup
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
async def test_unload_config_entry(hass: HomeAssistant):