From 98467d0d9ff69fedc91eb2423521fa17b55f673d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 6 Dec 2015 15:13:41 -0800 Subject: [PATCH] Correct HTTP start log message --- homeassistant/components/http.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index 9ae65be1067..4ab0bfee351 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -103,6 +103,7 @@ class HomeAssistantHTTPServer(ThreadingMixIn, HTTPServer): self.development = development self.paths = [] self.sessions = SessionStore() + self.use_ssl = ssl_certificate is not None # We will lazy init this one if needed self.event_forwarder = None @@ -124,8 +125,11 @@ class HomeAssistantHTTPServer(ThreadingMixIn, HTTPServer): self.hass.bus.listen_once(ha.EVENT_HOMEASSISTANT_STOP, stop_http) + protocol = 'https' if self.use_ssl else 'http' + _LOGGER.info( - "Starting web interface at %s", self.hass.config.api.base_url) + "Starting web interface at %s://%s:%d", + protocol, self.server_address[0], self.server_address[1]) # 31-1-2015: Refactored frontend/api components out of this component # To prevent stuff from breaking, load the two extracted components