mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix save_all service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user