mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix light group update before add (#12844)
* Fix light group update before add. * Revert pytest skip
This commit is contained in:
parent
92b07ba8d1
commit
99eeb01525
@ -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):
|
||||
|
@ -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': [
|
||||
|
Loading…
x
Reference in New Issue
Block a user