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

pull/22216/head
Jason Hu 2019-03-17 03:42:49 -07:00 committed by Paulus Schoutsen
parent c37dcacf54
commit 22624715a9
1 changed files with 1 additions and 2 deletions

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')