0f8e48c26df1ceb03c030b988a1d3d9bc3492f5e,homeassistant/components/alarm_control_panel/manual_mqtt.py,,,#,58

Before Change


    return config


STATE_SETTING_SCHEMA = vol.Schema({
    vol.Optional(CONF_PENDING_TIME):
        vol.All(vol.Coerce(int), vol.Range(min=0))
})

DEPENDENCIES = ["mqtt"]

PLATFORM_SCHEMA = vol.Schema(vol.All(mqtt.MQTT_BASE_PLATFORM_SCHEMA.extend({
    vol.Required(CONF_PLATFORM): "manual_mqtt",
    vol.Optional(CONF_NAME, default=DEFAULT_ALARM_NAME): cv.string,
    vol.Optional(CONF_CODE): cv.string,
    vol.Optional(CONF_PENDING_TIME, default=DEFAULT_PENDING_TIME):
        vol.All(vol.Coerce(int), vol.Range(min=0)),
    vol.Optional(CONF_TRIGGER_TIME, default=DEFAULT_TRIGGER_TIME):
        vol.All(vol.Coerce(int), vol.Range(min=1)),
    vol.Optional(CONF_DISARM_AFTER_TRIGGER,
                 default=DEFAULT_DISARM_AFTER_TRIGGER): cv.boolean,
    vol.Optional(STATE_ALARM_ARMED_AWAY, default={}): STATE_SETTING_SCHEMA,

After Change


    vol.Exclusive(CONF_CODE, "code validation"): cv.string,
    vol.Exclusive(CONF_CODE_TEMPLATE, "code validation"): cv.template,
    vol.Optional(CONF_DELAY_TIME, default=DEFAULT_DELAY_TIME):
        vol.All(cv.time_period, cv.positive_timedelta),
    vol.Optional(CONF_PENDING_TIME, default=DEFAULT_PENDING_TIME):
        vol.All(cv.time_period, cv.positive_timedelta),
    vol.Optional(CONF_TRIGGER_TIME, default=DEFAULT_TRIGGER_TIME):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: 0f8e48c26df1ceb03c030b988a1d3d9bc3492f5e
Time: 2017-12-03
Author: bonzini@gnu.org
File Name: homeassistant/components/alarm_control_panel/manual_mqtt.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 0f8e48c26df1ceb03c030b988a1d3d9bc3492f5e
Time: 2017-12-03
Author: bonzini@gnu.org
File Name: homeassistant/components/alarm_control_panel/manual_mqtt.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: 0f8e48c26df1ceb03c030b988a1d3d9bc3492f5e
Time: 2017-12-03
Author: bonzini@gnu.org
File Name: homeassistant/components/alarm_control_panel/manual.py
Class Name:
Method Name:


Project Name: home-assistant/home-assistant
Commit Name: f76d545a084e48f0cdaf59cd5937f9ae2eee691d
Time: 2016-04-21
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/helpers/config_validation.py
Class Name:
Method Name: