HTTP will not fail if no config

This commit is contained in:
Paulus Schoutsen 2015-12-05 13:44:50 -08:00
parent 705e3e4fbb
commit c4fe480b7b

View File

@ -50,7 +50,7 @@ _LOGGER = logging.getLogger(__name__)
def setup(hass, config):
""" Sets up the HTTP API and debug interface. """
conf = config[DOMAIN]
conf = config.get(DOMAIN, {})
api_password = util.convert(conf.get(CONF_API_PASSWORD), str)