abcfcdd8872dfe36c3a96afafdb4ba7f6abeb47d,homeassistant/components/weather/yweather.py,,setup_platform,#Any#Any#Any#Any#,56

Before Change


        _LOGGER.critical("Can"t retrieve weather data from Yahoo!")
        return False

    if forecast >= len(yahoo_api.yahoo.Forecast):
        _LOGGER.error("Yahoo! only support %d days forecast",
                      len(yahoo_api.yahoo.Forecast))
        return False

    add_devices([YahooWeatherWeather(yahoo_api, name, forecast)], True)


class YahooWeatherWeather(WeatherEntity):

After Change


    // create condition helper
    if DATA_CONDITION not in hass.data:
        hass.data[DATA_CONDITION] = [str(x) for x in range(0, 50)]
        for cond, condlst in CONDITION_CLASSES.items():
            for condi in condlst:
                hass.data[DATA_CONDITION][condi] = cond
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: abcfcdd8872dfe36c3a96afafdb4ba7f6abeb47d
Time: 2017-07-26
Author: cby@cby.me
File Name: homeassistant/components/weather/yweather.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 0568ef025bec97bf638a24fbedf1789be4bfb1ad
Time: 2016-10-11
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/climate/heatmiser.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 24d3cbdfe9f16fbf903259c2fb1870907cd5f9f5
Time: 2016-09-01
Author: happyleaves.tfr@gmail.com
File Name: homeassistant/components/switch/orvibo.py
Class Name:
Method Name: setup_platform