45649824ca65b49cc676393d660e8c18dd488acf,homeassistant/components/hangouts/const.py,,,#,10

Before Change


    vol.Required(ATTR_MESSAGE): [MESSAGE_SEGMENT_SCHEMA]
})

COMMAND_SCHEMA = vol.All(
    // Basic Schema
    vol.Schema({
        vol.Exclusive(CONF_WORD, "trigger"): cv.string,
        vol.Exclusive(CONF_EXPRESSION, "trigger"): cv.is_regex,
        vol.Required(CONF_NAME): cv.string,
        vol.Optional(CONF_CONVERSATIONS): [TARGETS_SCHEMA]
    }),
    // Make sure it"s either a word or an expression command
    cv.has_at_least_one_key(CONF_WORD, CONF_EXPRESSION)
)

CONFIG_SCHEMA = vol.Schema({
    DOMAIN: vol.Schema({
        vol.Optional(CONF_COMMANDS, default=[]): [COMMAND_SCHEMA]
    })
}, extra=vol.ALLOW_EXTRA)

After Change


INTENT_SCHEMA = vol.All(
    // Basic Schema
    vol.Schema({
        vol.Required(CONF_SENTENCES): vol.All(cv.ensure_list, [cv.string]),
        vol.Optional(CONF_CONVERSATIONS): [TARGETS_SCHEMA]
    }),
)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: 45649824ca65b49cc676393d660e8c18dd488acf
Time: 2018-08-27
Author: hobbypunk90@users.noreply.github.com
File Name: homeassistant/components/hangouts/const.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: a953601abdfe6ab1fc5b1026ec9fb72530201fcd
Time: 2018-08-27
Author: hobbypunk90@users.noreply.github.com
File Name: homeassistant/components/hangouts/const.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: e93919673e9a9873c2439ed1bd5d1b345f7cc061
Time: 2019-07-05
Author: cgtobi@users.noreply.github.com
File Name: homeassistant/components/netatmo/sensor.py
Class Name:
Method Name: