mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Extend test for group config
This commit is contained in:
parent
58eb32bce4
commit
34a7aa2376
@ -80,6 +80,7 @@ def test_update_device_config(hass, test_client):
|
|||||||
resp = yield from client.post(
|
resp = yield from client.post(
|
||||||
'/api/config/group/config/hello_beer', data=json.dumps({
|
'/api/config/group/config/hello_beer', data=json.dumps({
|
||||||
'name': 'Beer',
|
'name': 'Beer',
|
||||||
|
'entities': ['light.top', 'light.bottom'],
|
||||||
}))
|
}))
|
||||||
|
|
||||||
assert resp.status == 200
|
assert resp.status == 200
|
||||||
@ -87,6 +88,7 @@ def test_update_device_config(hass, test_client):
|
|||||||
assert result == {'result': 'ok'}
|
assert result == {'result': 'ok'}
|
||||||
|
|
||||||
orig_data['hello_beer']['name'] = 'Beer'
|
orig_data['hello_beer']['name'] = 'Beer'
|
||||||
|
orig_data['hello_beer']['entities'] = ['light.top', 'light.bottom']
|
||||||
|
|
||||||
assert written[0] == orig_data
|
assert written[0] == orig_data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user