Remove hass.config from aws_lambda notify payload (#22125)
parent
c37dcacf54
commit
22624715a9
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue