Base url: Fix external port different from internal port (#4990)

* Base url: Fix external port different from internal port

* Add base_url example to new config
This commit is contained in:
Paulus Schoutsen 2016-12-18 14:59:45 -08:00 committed by GitHub
parent 744d00a36e
commit ed0d14c902
4 changed files with 23 additions and 9 deletions

View file

@ -171,7 +171,7 @@ def test_api_base_url(loop):
})
)
assert hass.config.api.base_url == 'http://example.com:8123'
assert hass.config.api.base_url == 'http://example.com'
assert loop.run_until_complete(
bootstrap.async_setup_component(hass, 'http', {