Fix light group update before add (#12844)

* Fix light group update before add.

* Revert pytest skip
This commit is contained in:
Otto Winter 2018-03-03 00:04:32 +01:00 committed by Paulus Schoutsen
parent 92b07ba8d1
commit 99eeb01525
2 changed files with 1 additions and 3 deletions

View File

@ -45,7 +45,7 @@ async def async_setup_platform(hass: HomeAssistantType, config: ConfigType,
async_add_devices, discovery_info=None) -> None: async_add_devices, discovery_info=None) -> None:
"""Initialize light.group platform.""" """Initialize light.group platform."""
async_add_devices([GroupLight(config.get(CONF_NAME), async_add_devices([GroupLight(config.get(CONF_NAME),
config[CONF_ENTITIES])]) config[CONF_ENTITIES])], True)
class GroupLight(light.Light): class GroupLight(light.Light):

View File

@ -2,7 +2,6 @@
from unittest.mock import MagicMock from unittest.mock import MagicMock
import asynctest import asynctest
import pytest
from homeassistant.components import light from homeassistant.components import light
from homeassistant.components.light import group from homeassistant.components.light import group
@ -317,7 +316,6 @@ async def test_supported_features(hass):
assert state.attributes['supported_features'] == 41 assert state.attributes['supported_features'] == 41
@pytest.mark.skip
async def test_service_calls(hass): async def test_service_calls(hass):
"""Test service calls.""" """Test service calls."""
await async_setup_component(hass, 'light', {'light': [ await async_setup_component(hass, 'light', {'light': [