- fix init of conf_http

This commit is contained in:
Викторов Андрей Германович
2023-10-15 14:01:39 +03:00
parent 4edc0dcb4f
commit 6bb897a26f

View File

@@ -164,7 +164,7 @@ class MegaD:
if allow_hosts is not None and DOMAIN in hass.data:
allow_hosts = set(allow_hosts.split(";"))
hass.data[DOMAIN][CONF_HTTP].allowed_hosts |= allow_hosts
hass.data[DOMAIN][CONF_HTTP].protected = protected
hass.data[DOMAIN][CONF_HTTP].protected = protected
except Exception:
self.lg.exception("while setting allowed hosts")
self.binary_sensors = []