|
|
@@ -83,7 +83,11 @@ class RoomCalApiBackend(ReservationBackend):
|
|
|
try:
|
|
|
async with session.get(f"{self._base_url()}/services", headers=self._headers()) as resp:
|
|
|
if resp.status == 200:
|
|
|
- services = await resp.json()
|
|
|
+ raw = await resp.json()
|
|
|
+ if isinstance(raw, dict):
|
|
|
+ services = raw
|
|
|
+ else:
|
|
|
+ _LOGGER.warning("Unexpected /services response (expected dict, got %s)", type(raw).__name__)
|
|
|
except Exception as exc:
|
|
|
_LOGGER.warning("Failed to fetch /services: %s", exc)
|
|
|
|