Convert config.components to a set (#5824)

This commit is contained in:
Paulus Schoutsen 2017-02-09 10:21:57 -08:00 committed by Johann Kellerman
parent f3b9fa2f41
commit c54517de90
44 changed files with 118 additions and 104 deletions

View file

@ -265,6 +265,10 @@ def test_get_config(hass, websocket_client):
assert msg['id'] == 5
assert msg['type'] == wapi.TYPE_RESULT
assert msg['success']
if 'components' in msg['result']:
msg['result']['components'] = set(msg['result']['components'])
assert msg['result'] == hass.config.as_dict()