mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Access Zoneminder config correctly (#34388)
* use correct conf. Always use .get * remove .get
This commit is contained in:
parent
966cb14a38
commit
a6b407d706
@ -58,7 +58,7 @@ def setup(hass, config):
|
|||||||
success = True
|
success = True
|
||||||
|
|
||||||
for conf in config[DOMAIN]:
|
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]
|
host_name = conf[CONF_HOST]
|
||||||
server_origin = f"{protocol}://{host_name}"
|
server_origin = f"{protocol}://{host_name}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user