|
|
@@ -8,7 +8,7 @@ from datetime import datetime, timezone
|
|
|
from room_cal.store import Calendar, DEFAULT_CALENDAR_NAME
|
|
|
from room_cal.service_api import ServiceAPI
|
|
|
from room_cal.service_api.types import ServiceAuthError
|
|
|
-from room_cal._utils import services, local_today
|
|
|
+from room_cal._utils import services
|
|
|
|
|
|
_log = logging.getLogger(__name__)
|
|
|
|
|
|
@@ -61,9 +61,8 @@ async def caldav_checks(calendar_name: str = DEFAULT_CALENDAR_NAME) -> tuple[Hea
|
|
|
|
|
|
|
|
|
async def _probe_service(key: str, api: ServiceAPI) -> HealthResult:
|
|
|
- today = local_today().isoformat()
|
|
|
try:
|
|
|
- await api._clients[key].get_calendar(today, today)
|
|
|
+ await api._clients[key].probe()
|
|
|
return HealthResult(ok=True)
|
|
|
except ServiceAuthError as e:
|
|
|
return HealthResult(ok=False, reason=str(e))
|