From c99617d6e5f66ac1c5f94dc933ca0a111047e6bc Mon Sep 17 00:00:00 2001 From: Andrew McClure Date: Thu, 7 Apr 2016 13:45:40 +1200 Subject: [PATCH] Ensure server_host is respected in configuration.yaml --- homeassistant/components/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index 00b35dda8c9..7d8fd8620b4 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -77,7 +77,9 @@ def setup(hass, config): name='HTTP-server').start()) hass.http = server - hass.config.api = rem.API(util.get_local_ip(), api_password, server_port, + hass.config.api = rem.API(server_host if server_host != '0.0.0.0' + else util.get_local_ip(), + api_password, server_port, ssl_certificate is not None) return True