Correct HTTP start log message
parent
832674286b
commit
98467d0d9f
|
@ -103,6 +103,7 @@ class HomeAssistantHTTPServer(ThreadingMixIn, HTTPServer):
|
||||||
self.development = development
|
self.development = development
|
||||||
self.paths = []
|
self.paths = []
|
||||||
self.sessions = SessionStore()
|
self.sessions = SessionStore()
|
||||||
|
self.use_ssl = ssl_certificate is not None
|
||||||
|
|
||||||
# We will lazy init this one if needed
|
# We will lazy init this one if needed
|
||||||
self.event_forwarder = None
|
self.event_forwarder = None
|
||||||
|
@ -124,8 +125,11 @@ class HomeAssistantHTTPServer(ThreadingMixIn, HTTPServer):
|
||||||
|
|
||||||
self.hass.bus.listen_once(ha.EVENT_HOMEASSISTANT_STOP, stop_http)
|
self.hass.bus.listen_once(ha.EVENT_HOMEASSISTANT_STOP, stop_http)
|
||||||
|
|
||||||
|
protocol = 'https' if self.use_ssl else 'http'
|
||||||
|
|
||||||
_LOGGER.info(
|
_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
|
# 31-1-2015: Refactored frontend/api components out of this component
|
||||||
# To prevent stuff from breaking, load the two extracted components
|
# To prevent stuff from breaking, load the two extracted components
|
||||||
|
|
Loading…
Reference in New Issue