mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Merge pull request #2196 from home-assistant/revert-2192-expose-required-ssl-in-discoveries
Revert "Report whether SSL is required in discovery"
This commit is contained in:
commit
d0988422d4
@ -167,8 +167,7 @@ class APIDiscoveryView(HomeAssistantView):
|
||||
'base_url': self.hass.config.api.base_url,
|
||||
'location_name': self.hass.config.location_name,
|
||||
'requires_api_password': needs_auth,
|
||||
'version': __version__,
|
||||
'use_ssl': self.hass.config.api.use_ssl
|
||||
'version': __version__
|
||||
})
|
||||
|
||||
|
||||
|
@ -33,8 +33,7 @@ def setup(hass, config):
|
||||
|
||||
requires_api_password = (hass.config.api.api_password is not None)
|
||||
params = {"version": __version__, "base_url": hass.config.api.base_url,
|
||||
"requires_api_password": requires_api_password,
|
||||
"use_ssl": hass.config.api.use_ssl}
|
||||
"requires_api_password": requires_api_password}
|
||||
|
||||
info = ServiceInfo(ZEROCONF_TYPE, zeroconf_name,
|
||||
socket.inet_aton(hass.config.api.host),
|
||||
|
@ -55,8 +55,7 @@ class API(object):
|
||||
self.host = host
|
||||
self.port = port or SERVER_PORT
|
||||
self.api_password = api_password
|
||||
self.use_ssl = use_ssl
|
||||
if self.use_ssl:
|
||||
if use_ssl:
|
||||
self.base_url = "https://{}:{}".format(host, self.port)
|
||||
else:
|
||||
self.base_url = "http://{}:{}".format(host, self.port)
|
||||
|
Loading…
x
Reference in New Issue
Block a user