diff --git a/homeassistant/components/vera/binary_sensor.py b/homeassistant/components/vera/binary_sensor.py index a84764209b2..7932fa14f4c 100644 --- a/homeassistant/components/vera/binary_sensor.py +++ b/homeassistant/components/vera/binary_sensor.py @@ -27,7 +27,8 @@ async def async_setup_entry( [ VeraBinarySensor(device, controller_data) for device in controller_data.devices.get(PLATFORM_DOMAIN) - ] + ], + True, ) diff --git a/homeassistant/components/vera/climate.py b/homeassistant/components/vera/climate.py index 70694af012f..9abfc485268 100644 --- a/homeassistant/components/vera/climate.py +++ b/homeassistant/components/vera/climate.py @@ -44,7 +44,8 @@ async def async_setup_entry( [ VeraThermostat(device, controller_data) for device in controller_data.devices.get(PLATFORM_DOMAIN) - ] + ], + True, ) diff --git a/homeassistant/components/vera/cover.py b/homeassistant/components/vera/cover.py index 69e412bdade..43f68fba786 100644 --- a/homeassistant/components/vera/cover.py +++ b/homeassistant/components/vera/cover.py @@ -28,7 +28,8 @@ async def async_setup_entry( [ VeraCover(device, controller_data) for device in controller_data.devices.get(PLATFORM_DOMAIN) - ] + ], + True, ) diff --git a/homeassistant/components/vera/light.py b/homeassistant/components/vera/light.py index 7daaf095a5c..c52627d340f 100644 --- a/homeassistant/components/vera/light.py +++ b/homeassistant/components/vera/light.py @@ -32,7 +32,8 @@ async def async_setup_entry( [ VeraLight(device, controller_data) for device in controller_data.devices.get(PLATFORM_DOMAIN) - ] + ], + True, ) diff --git a/homeassistant/components/vera/lock.py b/homeassistant/components/vera/lock.py index 36a5f4cf2f3..b77f17d3b0a 100644 --- a/homeassistant/components/vera/lock.py +++ b/homeassistant/components/vera/lock.py @@ -31,7 +31,8 @@ async def async_setup_entry( [ VeraLock(device, controller_data) for device in controller_data.devices.get(PLATFORM_DOMAIN) - ] + ], + True, ) diff --git a/homeassistant/components/vera/scene.py b/homeassistant/components/vera/scene.py index a031aadb66c..2274b67f683 100644 --- a/homeassistant/components/vera/scene.py +++ b/homeassistant/components/vera/scene.py @@ -21,7 +21,7 @@ async def async_setup_entry( """Set up the sensor config entry.""" controller_data = get_controller_data(hass, entry) async_add_entities( - [VeraScene(device, controller_data) for device in controller_data.scenes] + [VeraScene(device, controller_data) for device in controller_data.scenes], True ) diff --git a/homeassistant/components/vera/sensor.py b/homeassistant/components/vera/sensor.py index e39b752bbf3..ea7dbf0ae30 100644 --- a/homeassistant/components/vera/sensor.py +++ b/homeassistant/components/vera/sensor.py @@ -28,7 +28,8 @@ async def async_setup_entry( [ VeraSensor(device, controller_data) for device in controller_data.devices.get(PLATFORM_DOMAIN) - ] + ], + True, ) diff --git a/homeassistant/components/vera/switch.py b/homeassistant/components/vera/switch.py index d0cbeba669c..5dfeba6f5b2 100644 --- a/homeassistant/components/vera/switch.py +++ b/homeassistant/components/vera/switch.py @@ -28,7 +28,8 @@ async def async_setup_entry( [ VeraSwitch(device, controller_data) for device in controller_data.devices.get(PLATFORM_DOMAIN) - ] + ], + True, ) diff --git a/tests/components/vera/test_init.py b/tests/components/vera/test_init.py index b1d6010336a..33b6843d7e5 100644 --- a/tests/components/vera/test_init.py +++ b/tests/components/vera/test_init.py @@ -206,6 +206,7 @@ async def test_exclude_and_light_ids( vera_device3.name = "dev3" vera_device3.category = pv.CATEGORY_SWITCH vera_device3.is_switched_on = MagicMock(return_value=False) + entity_id3 = "switch.dev3_3" vera_device4 = MagicMock(spec=pv.VeraSwitch) # type: pv.VeraSwitch @@ -214,6 +215,10 @@ async def test_exclude_and_light_ids( vera_device4.name = "dev4" vera_device4.category = pv.CATEGORY_SWITCH vera_device4.is_switched_on = MagicMock(return_value=False) + vera_device4.get_brightness = MagicMock(return_value=0) + vera_device4.get_color = MagicMock(return_value=[0, 0, 0]) + vera_device4.is_dimmable = True + entity_id4 = "light.dev4_4" component_data = await vera_component_factory.configure_component(