From 811f2067bb5612c418927e6e05b95474a7796861 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 22 Jan 2021 12:20:16 +0300 Subject: [PATCH] fix save_all service --- custom_components/mega/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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