mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 09:04:27 +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()
|
await hub.save()
|
||||||
else:
|
else:
|
||||||
for hub in hass.data[DOMAIN].values():
|
for hub in hass.data[DOMAIN].values():
|
||||||
await hub.save()
|
if isinstance(hub, MegaD):
|
||||||
|
await hub.save()
|
||||||
|
|
||||||
|
|
||||||
@bind_hass
|
@bind_hass
|
||||||
|
|||||||
Reference in New Issue
Block a user