Fix style issues

This commit is contained in:
Paulus Schoutsen 2015-03-16 22:45:42 -07:00
parent 83d83a09b5
commit b459a29947
2 changed files with 22 additions and 23 deletions

View file

@ -51,23 +51,23 @@ def setup(hass, config):
# Setup scripts # Setup scripts
bootstrap.setup_component( bootstrap.setup_component(
hass, 'script', hass, 'script',
{'script': {'script': {
{'demo': { 'demo': {
'alias': 'Demo {}'.format(lights[0]), 'alias': 'Demo {}'.format(lights[0]),
'sequence': [{ 'sequence': [{
'execute_service': 'light.turn_off', 'execute_service': 'light.turn_off',
'service_data': {ATTR_ENTITY_ID: lights[0]} 'service_data': {ATTR_ENTITY_ID: lights[0]}
}, { }, {
'delay': {'seconds': 5} 'delay': {'seconds': 5}
}, { }, {
'execute_service': 'light.turn_on', 'execute_service': 'light.turn_on',
'service_data': {ATTR_ENTITY_ID: lights[0]} 'service_data': {ATTR_ENTITY_ID: lights[0]}
}, { }, {
'delay': {'seconds': 5} 'delay': {'seconds': 5}
}, { }, {
'execute_service': 'light.turn_off', 'execute_service': 'light.turn_off',
'service_data': {ATTR_ENTITY_ID: lights[0]} 'service_data': {ATTR_ENTITY_ID: lights[0]}
}] }]
}}}) }}})
# Setup scenes # Setup scenes
@ -76,17 +76,16 @@ def setup(hass, config):
{'scene': [ {'scene': [
{'name': 'Romantic lights', {'name': 'Romantic lights',
'entities': { 'entities': {
lights[0]: True, lights[0]: True,
lights[1]: {'state': 'on', 'xy_color': [0.33, 0.66], lights[1]: {'state': 'on', 'xy_color': [0.33, 0.66],
'brightness': 200}, 'brightness': 200},
}}, }},
{'name': 'Switch on and off', {'name': 'Switch on and off',
'entities': { 'entities': {
switches[0]: True, switches[0]: True,
switches[1]: False, switches[1]: False,
}}, }},
] ]})
})
# Setup fake device tracker # Setup fake device tracker
hass.states.set("device_tracker.paulus", "home", hass.states.set("device_tracker.paulus", "home",

View file

@ -169,7 +169,7 @@ def load_order_components(components):
# Push recorder to first place in load order # Push recorder to first place in load order
if 'recorder' in load_order: if 'recorder' in load_order:
load_order.promote('recorder'.DOMAIN) load_order.promote('recorder')
return load_order return load_order