Remove hass.config from aws_lambda notify payload (#22125)

This commit is contained in:
Jason Hu 2019-03-17 03:42:49 -07:00 committed by Fabian Affolter
parent 54dfc3e2b4
commit 1aab551eed

View File

@ -39,8 +39,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
def get_service(hass, config, discovery_info=None):
"""Get the AWS Lambda notification service."""
context_str = json.dumps({'hass': hass.config.as_dict(),
'custom': config[CONF_CONTEXT]}, cls=JSONEncoder)
context_str = json.dumps({'custom': config[CONF_CONTEXT]}, cls=JSONEncoder)
context_b64 = base64.b64encode(context_str.encode('utf-8'))
context = context_b64.decode('utf-8')