diff --git a/custom_components/mega/hub.py b/custom_components/mega/hub.py index bfeb3c4..9da9573 100644 --- a/custom_components/mega/hub.py +++ b/custom_components/mega/hub.py @@ -91,6 +91,8 @@ class MegaD: **kwargs, ): """Initialize.""" + if DOMAIN not in hass.data: + hass.data[DOMAIN] = {} if config is not None: lg.debug(f'load config: %s', config.data) self.config = config