6a84b826633beeb807c5a8b8d300095c5241f0d5,homeassistant/components/octoprint.py,,setup,#Any#Any#,24

Before Change



def setup(hass, config):
    Set up OctoPrint API.
    if not validate_config(config, {DOMAIN: [CONF_API_KEY],
                                    DOMAIN: [CONF_HOST]},
                           _LOGGER):
        return False

    base_url = config[DOMAIN][CONF_HOST] + "/api/"
    api_key = config[DOMAIN][CONF_API_KEY]

    global OCTOPRINT
    try:

After Change



def setup(hass, config):
    Set up OctoPrint API.
    base_url = "http://{}/api/".format(config[DOMAIN][CONF_HOST])
    api_key = config[DOMAIN][CONF_API_KEY]

    global OCTOPRINT
    try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: 6a84b826633beeb807c5a8b8d300095c5241f0d5
Time: 2016-09-02
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/octoprint.py
Class Name:
Method Name: setup


Project Name: home-assistant/home-assistant
Commit Name: 6f27d58188ce908ea6f04e0f9cd7887c1201b614
Time: 2016-08-23
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/splunk.py
Class Name:
Method Name: setup


Project Name: home-assistant/home-assistant
Commit Name: a43ea81d8e31130853480b3656143746b65c6a03
Time: 2016-08-23
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/logentries.py
Class Name:
Method Name: setup