Compare commits

...

1 Commits

Author SHA1 Message Date
Andrey
dc6bdfc8f4 fix yaml exclusion 2021-01-25 17:56:47 +03:00

View File

@@ -61,7 +61,8 @@ class MegaD:
"""Initialize.""" """Initialize."""
if mqtt_inputs is None or mqtt_inputs == 'None' or mqtt_inputs is False: if mqtt_inputs is None or mqtt_inputs == 'None' or mqtt_inputs is False:
self.http = hass.data.get(DOMAIN, {}).get(CONF_HTTP) self.http = hass.data.get(DOMAIN, {}).get(CONF_HTTP)
self.http.allowed_hosts |= {host} if not self.http is None:
self.http.allowed_hosts |= {host}
else: else:
self.http = None self.http = None
self.update_all = update_all if update_all is not None else True self.update_all = update_all if update_all is not None else True