File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ def __init__(
8181 self .request = backoff .on_exception (
8282 backoff .expo ,
8383 ClientResponseError ,
84+ jitter = backoff .random_jitter ,
8485 logger = LOGGER ,
8586 max_tries = request_retries ,
8687 on_backoff = self ._async_handle_on_backoff ,
Original file line number Diff line number Diff line change 11"""Define V2 and V3 SimpliSafe systems."""
22from __future__ import annotations
33
4- import asyncio
54from dataclasses import dataclass
65from datetime import datetime
76from enum import Enum
@@ -388,14 +387,12 @@ async def async_update(
388387 :param cached: Whether to used cached data.
389388 :type cached: ``bool``
390389 """
391- update_tasks = []
392390 if include_subscription :
393- update_tasks . append ( self ._async_update_subscription_data () )
391+ await self ._async_update_subscription_data ()
394392 if include_settings :
395- update_tasks . append ( self ._async_update_settings_data (cached ) )
393+ await self ._async_update_settings_data (cached )
396394 if include_devices :
397- update_tasks .append (self ._async_update_device_data (cached ))
398- await asyncio .gather (* update_tasks )
395+ await self ._async_update_device_data (cached )
399396
400397 # Create notifications:
401398 self ._notifications = [
You can’t perform that action at this time.
0 commit comments