Add support for multiple vera controller hubs (#33613)

This commit is contained in:
Robert Van Gorkom authored and GitHub committed 2020-09-14 22:06:52 -05:00
1 parent 938e06c00e
commit 903afb62d0
24 files changed
+323 -149

No files matched your search

+2 -1
View File
@@ -15,6 +15,7 @@ async def test_light(
"""Test function."""
vera_device = MagicMock(spec=pv.VeraDimmer) # type: pv.VeraDimmer
vera_device.device_id = 1
vera_device.vera_device_id = vera_device.device_id
vera_device.name = "dev1"
vera_device.category = pv.CATEGORY_DIMMER
vera_device.is_switched_on = MagicMock(return_value=False)
@@ -27,7 +28,7 @@ async def test_light(
hass=hass,
controller_config=new_simple_controller_config(devices=(vera_device,)),
)
update_callback = component_data.controller_data.update_callback
update_callback = component_data.controller_data[0].update_callback
assert hass.states.get(entity_id).state == "off"