fix save_all service

This commit is contained in:
Andrey
2021-01-22 12:20:16 +03:00
parent 3e1499f78b
commit 811f2067bb

View File

@@ -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