diff --git a/custom_components/mega/__init__.py b/custom_components/mega/__init__.py index 55f3fa6..9e3ea4b 100644 --- a/custom_components/mega/__init__.py +++ b/custom_components/mega/__init__.py @@ -169,7 +169,8 @@ async def _save_service(hass: HomeAssistant, call: ServiceCall): await hub.save() else: for hub in hass.data[DOMAIN].values(): - await hub.save() + if isinstance(hub, MegaD): + await hub.save() @bind_hass