Fix typo in conf[CONF_SSL] (#35946)

pull/36070/head
Hugues Granger 2020-05-22 13:08:53 +02:00 committed by Franck Nijhof
parent 8a9ba7e72d
commit 9401525464
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def setup(hass, config):
"""Set up the Zabbix component."""
conf = config[DOMAIN]
protocol = "https" if config[CONF_SSL] else "http"
protocol = "https" if conf[CONF_SSL] else "http"
url = urljoin(f"{protocol}://{conf[CONF_HOST]}", conf[CONF_PATH])
username = conf.get(CONF_USERNAME)