1e92417804ddc8c5ea2eb9a5d857d0a8ce3e25ab,homeassistant/components/xiaomi_aqara.py,,,#,11
Before Change
XIAOMI_AQARA_SERVICE_SCHEMA = vol.Schema({
vol.Required(ATTR_GW_MAC): vol.All(cv.string,
vol.Any(vol.Length(min=12, max=12),
vol.Length(min=17, max=17)))
})
SERVICE_SCHEMA_PLAY_RINGTONE = XIAOMI_AQARA_SERVICE_SCHEMA.extend({
vol.Required(ATTR_RINGTONE_ID): vol.Coerce(int),
vol.Optional(ATTR_RINGTONE_VOL): vol.All(vol.Coerce(int),
vol.Clamp(min=0, max=100))
})
SERVICE_SCHEMA_REMOVE_DEVICE = XIAOMI_AQARA_SERVICE_SCHEMA.extend({
vol.Required(ATTR_DEVICE_ID): vol.All(cv.string,
vol.Length(min=14, max=14))
})
SERVICE_TO_METHOD = {
SERVICE_PLAY_RINGTONE: {"method": "play_ringtone_service",
"schema": SERVICE_SCHEMA_PLAY_RINGTONE},
SERVICE_STOP_RINGTONE: {"method": "stop_ringtone_service"},
SERVICE_ADD_DEVICE: {"method": "add_device_service"},
SERVICE_REMOVE_DEVICE: {"method": "remove_device_service",
After Change
})
GATEWAY_CONFIG = vol.Schema({
vol.Optional(CONF_MAC): GW_MAC,
vol.Optional(CONF_KEY, default=None):
vol.All(cv.string, vol.Length(min=16, max=16)),
vol.Optional(CONF_HOST): cv.string,
vol.Optional(CONF_PORT, default=9898): cv.port,
})
def _fix_conf_defaults(config):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: 1e92417804ddc8c5ea2eb9a5d857d0a8ce3e25ab
Time: 2017-11-03
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/xiaomi_aqara.py
Class Name:
Method Name:
Project Name: regel/loudml
Commit Name: 85e5fa6cfef6beb711db8e95f12b416348cce436
Time: 2018-04-05
Author: sebastien.regel@gmail.com
File Name: loudml-influx/loudml/influx.py
Class Name: InfluxDataSource
Method Name: InfluxDataSource_1
Project Name: home-assistant/home-assistant
Commit Name: 8f774e9c531555cdf31d2ff5f955a9e27ad85404
Time: 2017-11-02
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/xiaomi_aqara.py
Class Name:
Method Name: