1e92417804ddc8c5ea2eb9a5d857d0a8ce3e25ab,homeassistant/components/xiaomi_aqara.py,,setup,#Any#Any#,106

Before Change


            _LOGGER.error("Unknown gateway sid: %s was specified.", gw_sid)

    for xiaomi_aqara_service in SERVICE_TO_METHOD:
        schema = SERVICE_TO_METHOD[xiaomi_aqara_service].get(
            "schema", XIAOMI_AQARA_SERVICE_SCHEMA)
        service_handler = SERVICE_TO_METHOD[xiaomi_aqara_service].get("method")
        hass.services.async_register(
            DOMAIN, xiaomi_aqara_service, service_handler,
            description=None, schema=schema)

After Change


        gateway = call.data.get(ATTR_GW_MAC)
        gateway.write_to_hub(gateway.sid, remove_device=device_id)

    gateway_only_schema = _add_gateway_to_schema(xiaomi, vol.Schema({}))

    hass.services.async_register(
        DOMAIN, SERVICE_PLAY_RINGTONE, play_ringtone_service,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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


Project Name: tensorflow/transform
Commit Name: 12bdd147ce0585a5cc21b001474a5874acf4a9b9
Time: 2019-05-01
Author: kestert@google.com
File Name: tensorflow_transform/tf_metadata/dataset_schema.py
Class Name:
Method Name: from_feature_spec


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