Fix a config bug in Automation

This commit is contained in:
Paulus Schoutsen 2015-03-14 19:13:03 -07:00
parent 633d0453be
commit 6da0257bb6
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,8 @@ automation 2:
time_seconds: 0
execute_service: notify.notify
service_data: {"message":"It's 4, time for beer!"}
service_data:
message: It's 4, time for beer!
sensor:
platform: systemmonitor

View File

@ -54,8 +54,7 @@ def _get_action(hass, config):
if CONF_SERVICE in config:
domain, service = split_entity_id(config[CONF_SERVICE])
service_data = convert(
config.get(CONF_SERVICE_DATA), json.loads, {})
service_data = config.get(CONF_SERVICE_DATA, {})
if not isinstance(service_data, dict):
_LOGGER.error(