Skip to content

Commit 382026a

Browse files
committed
SED: move save_cache() to task-list
1 parent 644b0bd commit 382026a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/sed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ async def _awake_response(self, response: PlugwiseResponse) -> bool:
522522
NodeFeature.BATTERY,
523523
self._battery_config,
524524
),
525+
self.save_cache(),
525526
]
526527
self._delayed_task = self._loop.create_task(
527528
self._send_tasks(), name=f"Delayed update for {self._mac_in_str}"
@@ -550,7 +551,6 @@ async def _awake_response(self, response: PlugwiseResponse) -> bool:
550551
tasks.append(self.update_ping_at_awake())
551552

552553
await gather(*tasks)
553-
await self.save_cache()
554554
return True
555555

556556
async def update_ping_at_awake(self) -> None:

0 commit comments

Comments
 (0)