48c16311789bc598e1a7e403e369f0b62e8d605c,homeassistant/components/notify/aws_lambda.py,,,#,17

Before Change


CONF_PROFILE_NAME = "profile_name"
CONF_CONTEXT = "context"

PLATFORM_SCHEMA = vol.Schema({
    vol.Required(CONF_PLATFORM): "aws_lambda",
    vol.Optional(CONF_NAME): vol.Coerce(str),
    vol.Optional(CONF_REGION, default="us-east-1"): vol.Coerce(str),
    vol.Inclusive(CONF_ACCESS_KEY_ID, "credentials"): vol.Coerce(str),
    vol.Inclusive(CONF_SECRET_ACCESS_KEY, "credentials"): vol.Coerce(str),
    vol.Exclusive(CONF_PROFILE_NAME, "credentials"): vol.Coerce(str),
    vol.Optional(CONF_CONTEXT, default=dict()): vol.Coerce(dict)
})


def get_service(hass, config):
    Get the AWS Lambda notification service.

After Change


CONF_SECRET_ACCESS_KEY = "aws_secret_access_key"
CONF_PROFILE_NAME = "profile_name"
CONF_CONTEXT = "context"
ATTR_CREDENTIALS = "credentials"

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
    vol.Optional(CONF_REGION, default="us-east-1"): cv.string,
    vol.Inclusive(CONF_ACCESS_KEY_ID, ATTR_CREDENTIALS): cv.string,
    vol.Inclusive(CONF_SECRET_ACCESS_KEY, ATTR_CREDENTIALS): cv.string,
    vol.Exclusive(CONF_PROFILE_NAME, ATTR_CREDENTIALS): cv.string,
    vol.Optional(CONF_CONTEXT, default=dict()): vol.Coerce(dict)
})


def get_service(hass, config):
    Get the AWS Lambda notification service.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 26

Instances


Project Name: home-assistant/home-assistant
Commit Name: 48c16311789bc598e1a7e403e369f0b62e8d605c
Time: 2016-09-05
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/notify/aws_lambda.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 48c16311789bc598e1a7e403e369f0b62e8d605c
Time: 2016-09-05
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/notify/aws_sqs.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 48c16311789bc598e1a7e403e369f0b62e8d605c
Time: 2016-09-05
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/notify/aws_lambda.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 48c16311789bc598e1a7e403e369f0b62e8d605c
Time: 2016-09-05
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/notify/aws_sns.py
Class Name:
Method Name: