From 6bb897a26f871e08162a085c5b0bc0e5f6bdf86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=93=D0=B5=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B8=D1=87?= Date: Sun, 15 Oct 2023 14:01:39 +0300 Subject: [PATCH] - fix init of conf_http --- custom_components/mega/hub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/mega/hub.py b/custom_components/mega/hub.py index d2d5c44..eced5e6 100644 --- a/custom_components/mega/hub.py +++ b/custom_components/mega/hub.py @@ -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 = []