mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
HTTP will not fail if no config
This commit is contained in:
@@ -50,7 +50,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
""" Sets up the HTTP API and debug interface. """
|
""" 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)
|
api_password = util.convert(conf.get(CONF_API_PASSWORD), str)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user