Add tests for automation component

This commit is contained in:
Paulus Schoutsen committed 2015-08-10 22:26:12 -07:00
1 parent 6e98e55f6a
commit eecc51c92d
5 files changed
+303 -2

No files matched your search

@@ -56,8 +56,7 @@ def _get_action(hass, config):
service_data = config.get(CONF_SERVICE_DATA, {})
if not isinstance(service_data, dict):
_LOGGER.error(
"%s should be a serialized JSON object", CONF_SERVICE_DATA)
_LOGGER.error("%s should be a dictionary", CONF_SERVICE_DATA)
service_data = {}
if CONF_SERVICE_ENTITY_ID in config: