1e92417804ddc8c5ea2eb9a5d857d0a8ce3e25ab,homeassistant/components/xiaomi_aqara.py,,,#,11

Before Change


SERVICE_ADD_DEVICE = "add_device"
SERVICE_REMOVE_DEVICE = "remove_device"

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),

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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: 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:


Project Name: regel/loudml
Commit Name: 2e55ef831c8a36f2910f0e4a25f31509bcd39193
Time: 2018-04-30
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/fingerprints.py
Class Name: Aggregation
Method Name: Aggregation_1