Avoid executor job to start http if server_host is unspecified (#114609)

* Avoid executor job to start http if server_host is unspecified

Same as #112522 for http

* adjust test

* CONF_SERVER_HOST is always set now
This commit is contained in:
J. Nick Koston 2024-04-03 19:51:18 -10:00 committed by GitHub
parent 56d0ad27f0
commit 7a2e529bb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -135,6 +135,7 @@ def test_secrets(mock_is_file, event_loop, mock_hass_config_yaml: None) -> None:
"server_port": 8123,
"ssl_profile": "modern",
"use_x_frame_options": True,
"server_host": ["0.0.0.0", "::"],
}
assert res["secret_cache"] == {
get_test_config_dir("secrets.yaml"): {"http_pw": "http://google.com"}