ed05ff6fd93938a77f85a3008b78c28cf1c0e1ad,homeassistant/components/http/__init__.py,,setup,#Any#Any#,120
Before Change
def setup(hass, config):
Sets up the HTTP API and debug interface.
if not validate_config(config, {DOMAIN: [CONF_API_PASSWORD]}, _LOGGER):
return False
api_password = config[DOMAIN][CONF_API_PASSWORD]
// If no server host is given, accept all incoming requests
server_host = config[DOMAIN].get(CONF_SERVER_HOST, "0.0.0.0")
After Change
Sets up the HTTP API and debug interface.
if config is None or DOMAIN not in config:
config = {DOMAIN: {}}
api_password = config[DOMAIN].get(CONF_API_PASSWORD)
no_password_set = api_password is None
if no_password_set:
api_password = util.get_random_string()
// If no server host is given, accept all incoming requests
server_host = config[DOMAIN].get(CONF_SERVER_HOST, "0.0.0.0")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: home-assistant/home-assistant
Commit Name: ed05ff6fd93938a77f85a3008b78c28cf1c0e1ad
Time: 2015-01-17
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/http/__init__.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 159411df8bfe6d688e304ee8c63638a4f84f6768
Time: 2015-08-18
Author: rmkraus@gmail.com
File Name: homeassistant/components/notify/__init__.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 8386bda4e49a14661d8a9f9020002d1434f83372
Time: 2016-03-12
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/mqtt/__init__.py
Class Name:
Method Name: setup