From a6b407d706a0ed00d740a9c50eeb5107acccddc1 Mon Sep 17 00:00:00 2001 From: John Arild Berentsen Date: Sun, 19 Apr 2020 10:00:23 +0200 Subject: [PATCH] Access Zoneminder config correctly (#34388) * use correct conf. Always use .get * remove .get --- homeassistant/components/zoneminder/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/zoneminder/__init__.py b/homeassistant/components/zoneminder/__init__.py index cd62cef74eb..c631406b0e3 100644 --- a/homeassistant/components/zoneminder/__init__.py +++ b/homeassistant/components/zoneminder/__init__.py @@ -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}"