062fe79b3f05e00dc2bb0ccbc20d6e7ef1c77b54,homeassistant/components/thermostat/honeywell.py,,setup_platform,#Any#Any#Any#Any#,23

Before Change


                      CONF_USERNAME, CONF_PASSWORD)
        return False

    evo_api = EvohomeClient(username, password)

    try:
        zones = evo_api.temperatures(force_refresh=True)
        for i, zone in enumerate(zones):
            add_devices([RoundThermostat(evo_api,
                                         zone["id"],
                                         i == 0,
                                         away_temp)])
    except socket.error:
        _LOGGER.error(
            "Connection error logging into the honeywell evohome web service"
        )

After Change


     Sets up the honeywel thermostat. 
    username = config.get(CONF_USERNAME)
    password = config.get(CONF_PASSWORD)
    thermostat_id = config.get("id")

    if username is None or password is None:
        _LOGGER.error("Missing required configuration items %s or %s",
                      CONF_USERNAME, CONF_PASSWORD)
        return False

    if thermostat_id:
        add_devices([HoneywellUSThermostat(thermostat_id, username, password)])
    else:
        return _setup_round(username, password, config, add_devices)


class RoundThermostat(ThermostatDevice):
     Represents a Honeywell Round Connected thermostat. 

    // pylint: disable=too-many-instance-attributes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: home-assistant/home-assistant
Commit Name: 062fe79b3f05e00dc2bb0ccbc20d6e7ef1c77b54
Time: 2016-02-06
Author: dsmith@danplanet.com
File Name: homeassistant/components/thermostat/honeywell.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: d91fe792c56d872e9054fd608978fd51a99142dd
Time: 2015-11-27
Author: happyleaves.tfr@gmail.com
File Name: homeassistant/components/light/limitlessled.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 5fba67f6c37a7c36935e4f9cb227b21f1b7a1c7b
Time: 2015-11-29
Author: happyleaves.tfr@gmail.com
File Name: homeassistant/components/light/limitlessled.py
Class Name:
Method Name: setup_platform