mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
HTTP will not fail if no config
This commit is contained in:
parent
705e3e4fbb
commit
c4fe480b7b
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user