Skip to content

Commit 838e904

Browse files
style: Auto-fix formatting issues
1 parent c1cec2a commit 838e904

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

custom_components/vacasa/api_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
from .const import (
1818
API_BASE_TEMPLATE,
1919
AUTH_URL,
20+
CLIENT_ID_CACHE_TTL,
2021
DEFAULT_API_VERSION,
2122
DEFAULT_CACHE_TTL,
2223
DEFAULT_CLIENT_ID,
2324
DEFAULT_CONN_TIMEOUT,
2425
DEFAULT_JITTER_MAX,
2526
DEFAULT_KEEPALIVE_TIMEOUT,
26-
CLIENT_ID_CACHE_TTL,
2727
DEFAULT_MAX_CONCURRENT_REQUESTS,
2828
DEFAULT_MAX_CONNECTIONS,
2929
DEFAULT_READ_TIMEOUT,
@@ -375,7 +375,9 @@ async def _request(
375375

376376
if response.status == 401:
377377
# Attempt token refresh once when unauthorized
378-
_LOGGER.warning("API request unauthorized for %s, refreshing token", url)
378+
_LOGGER.warning(
379+
"API request unauthorized for %s, refreshing token", url
380+
)
379381
if retry_on_unauthorized:
380382
await self.authenticate()
381383
await self._save_token_to_cache()

custom_components/vacasa/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@
9393
SIGNAL_RESERVATION_STATE = "vacasa_reservation_state"
9494

9595
# Calendar event window constants
96-
CALENDAR_LOOKBACK_DAYS = 60 # days to look back for active reservations
96+
CALENDAR_LOOKBACK_DAYS = 60 # days to look back for active reservations
9797
CALENDAR_LOOKAHEAD_DAYS = 365 # days to look ahead for future reservations
9898

9999
# Default reservation times when none are provided by the API
100-
DEFAULT_CHECKIN_TIME = "16:00:00" # 4:00 PM
100+
DEFAULT_CHECKIN_TIME = "16:00:00" # 4:00 PM
101101
DEFAULT_CHECKOUT_TIME = "10:00:00" # 10:00 AM
102102

103103
# Client ID cache TTL (re-use DEFAULT_CACHE_TTL for this purpose)

0 commit comments

Comments
 (0)