35f0270688d2bd1e31e45ebbc1771f1ff940bff6,homeassistant/components/sun.py,,setup,#Any#Any#,100

Before Change



def setup(hass, config):
     Tracks the state of the sun. 
    logger = logging.getLogger(__name__)

    global ephem  // pylint: disable=invalid-name
    if ephem is None:
        import ephem as ephem_

After Change


        errors.append("Longitude needs to be -180 .. 180")

    if errors:
        _LOGGER.error("Invalid configuration received: %s", ", ".join(errors))
        return False

    sun = Sun(hass, latitude, longitude)
    sun.point_in_time_listener(dt_util.utcnow())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 35f0270688d2bd1e31e45ebbc1771f1ff940bff6
Time: 2015-07-16
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/sun.py
Class Name:
Method Name: setup


Project Name: home-assistant/home-assistant
Commit Name: bfc0a6a17c471d0124310cc92fac9656b6d581df
Time: 2017-01-17
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/switch/qwikswitch.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 3d972abdabb087b7384cc8ef73f4d109629abd54
Time: 2015-10-22
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/thermostat/heat_control.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: bfc0a6a17c471d0124310cc92fac9656b6d581df
Time: 2017-01-17
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/light/qwikswitch.py
Class Name:
Method Name: setup_platform