Access Zoneminder config correctly (#34388)

* use correct conf. Always use .get

* remove .get
This commit is contained in:
John Arild Berentsen 2020-04-19 10:00:23 +02:00 committed by GitHub
parent 966cb14a38
commit a6b407d706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ def setup(hass, config):
success = True
for conf in config[DOMAIN]:
protocol = "https" if config[CONF_SSL] else "http"
protocol = "https" if conf[CONF_SSL] else "http"
host_name = conf[CONF_HOST]
server_origin = f"{protocol}://{host_name}"