From 99eeb0152536dfc43ee9e775605bb543456e56ad Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sat, 3 Mar 2018 00:04:32 +0100 Subject: [PATCH] Fix light group update before add (#12844) * Fix light group update before add. * Revert pytest skip --- homeassistant/components/light/group.py | 2 +- tests/components/light/test_group.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/light/group.py b/homeassistant/components/light/group.py index 15e874db8f4..768754ca1af 100644 --- a/homeassistant/components/light/group.py +++ b/homeassistant/components/light/group.py @@ -45,7 +45,7 @@ async def async_setup_platform(hass: HomeAssistantType, config: ConfigType, async_add_devices, discovery_info=None) -> None: """Initialize light.group platform.""" async_add_devices([GroupLight(config.get(CONF_NAME), - config[CONF_ENTITIES])]) + config[CONF_ENTITIES])], True) class GroupLight(light.Light): diff --git a/tests/components/light/test_group.py b/tests/components/light/test_group.py index c97a5ae9efe..ac19f407066 100644 --- a/tests/components/light/test_group.py +++ b/tests/components/light/test_group.py @@ -2,7 +2,6 @@ from unittest.mock import MagicMock import asynctest -import pytest from homeassistant.components import light from homeassistant.components.light import group @@ -317,7 +316,6 @@ async def test_supported_features(hass): assert state.attributes['supported_features'] == 41 -@pytest.mark.skip async def test_service_calls(hass): """Test service calls.""" await async_setup_component(hass, 'light', {'light': [