diff --git a/homeassistant/remote.py b/homeassistant/remote.py index 69e8b88305f..c124d509f9c 100644 --- a/homeassistant/remote.py +++ b/homeassistant/remote.py @@ -61,7 +61,9 @@ class API(object): self.port = port self.api_password = api_password - if use_ssl: + if host.startswith(("http://", "https://")): + self.base_url = host + elif use_ssl: self.base_url = "https://{}".format(host) else: self.base_url = "http://{}".format(host)