mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Ensure server_host is respected in configuration.yaml
This commit is contained in:
parent
5a32ddbe6f
commit
c99617d6e5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user