mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-02-02 23:47:47 +05:00
- fix init of conf_http
This commit is contained in:
@@ -164,7 +164,7 @@ class MegaD:
|
|||||||
if allow_hosts is not None and DOMAIN in hass.data:
|
if allow_hosts is not None and DOMAIN in hass.data:
|
||||||
allow_hosts = set(allow_hosts.split(";"))
|
allow_hosts = set(allow_hosts.split(";"))
|
||||||
hass.data[DOMAIN][CONF_HTTP].allowed_hosts |= allow_hosts
|
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:
|
except Exception:
|
||||||
self.lg.exception("while setting allowed hosts")
|
self.lg.exception("while setting allowed hosts")
|
||||||
self.binary_sensors = []
|
self.binary_sensors = []
|
||||||
|
|||||||
Reference in New Issue
Block a user