mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-04 01:38:44 +05:00
fix yaml exclusion
This commit is contained in:
1 parent
c4205c7ddc
commit
e51b50797c
1 file changed
+1
-1
@@ -60,7 +60,7 @@ class MegaD:
|
||||
):
|
||||
"""Initialize."""
|
||||
if mqtt_inputs is None or mqtt_inputs == 'None' or mqtt_inputs is False:
|
||||
self.http = hass.data[DOMAIN][CONF_HTTP]
|
||||
self.http = hass.data.get(DOMAIN, {}).get(CONF_HTTP)
|
||||
self.http.allowed_hosts |= {host}
|
||||
else:
|
||||
self.http = None
|
||||
|
||||
Reference in new issue
Block a user