|
|
@@ -537,6 +537,11 @@ class _BookingClient:
|
|
|
self._cache.update(month_result)
|
|
|
return {d: info for d, info in self._cache.items() if date_from <= d <= date_to}
|
|
|
|
|
|
+ async def probe(self) -> None:
|
|
|
+ from datetime import date
|
|
|
+ today = date.today().isoformat()
|
|
|
+ await self.get_calendar(today, today)
|
|
|
+
|
|
|
async def get_reservations(self, date_from: str, date_to: str) -> list[Reservation]:
|
|
|
if is_stale('booking'):
|
|
|
raise BookingAuthError(f'Booking.com credentials are stale — run: {_AUTH_HINT}')
|