diff --git a/homeassistant/components/group/config_flow.py b/homeassistant/components/group/config_flow.py index 28a7330a206..a5bf9e0b972 100644 --- a/homeassistant/components/group/config_flow.py +++ b/homeassistant/components/group/config_flow.py @@ -343,8 +343,7 @@ def ws_start_preview( """Forward config entry state events to websocket.""" connection.send_message( websocket_api.event_message( - msg["id"], - {"attributes": attributes, "group_type": group_type, "state": state}, + msg["id"], {"attributes": attributes, "state": state} ) ) diff --git a/tests/components/group/test_config_flow.py b/tests/components/group/test_config_flow.py index b244b37e072..a58e47cae71 100644 --- a/tests/components/group/test_config_flow.py +++ b/tests/components/group/test_config_flow.py @@ -524,7 +524,6 @@ async def test_config_flow_preview( msg = await client.receive_json() assert msg["event"] == { "attributes": {"friendly_name": "My group"} | extra_attributes[0], - "group_type": domain, "state": "unavailable", } @@ -539,7 +538,6 @@ async def test_config_flow_preview( } | extra_attributes[0] | extra_attributes[1], - "group_type": domain, "state": group_state, } assert len(hass.states.async_all()) == 2 @@ -622,7 +620,6 @@ async def test_option_flow_preview( assert msg["event"] == { "attributes": {"entity_id": input_entities, "friendly_name": "My group"} | extra_attributes, - "group_type": domain, "state": group_state, } assert len(hass.states.async_all()) == 3