From 3b514a8262f27076eeaf2425350a2a51869f300b Mon Sep 17 00:00:00 2001 From: dario <446-dario@users.noreply.gitlab.hamburg.ccc.de> Date: Tue, 16 Jan 2024 02:29:27 +0100 Subject: [PATCH] remove check for removed spaceapi item "api" remove check for presence of "api" item in the spaceapi response, as this item was removed in spaceapi v14 --- themes/ccchh/assets/js/roomstate.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/themes/ccchh/assets/js/roomstate.js b/themes/ccchh/assets/js/roomstate.js index 7f78c7a..8aa829a 100644 --- a/themes/ccchh/assets/js/roomstate.js +++ b/themes/ccchh/assets/js/roomstate.js @@ -44,10 +44,6 @@ function updateRoomState(openState, lastChangeTimestamp) { function parseResponse(apiJson) { console.debug('SpaceAPI got:', apiJson) - if (typeof apiJson.api === "undefined") { - console.error("SpaceAPI JSON invalid: 'api' item not present") - return [null, null] - } if (typeof apiJson.state === "undefined") { console.error("SpaceAPI JSON invalid: 'state' item not present") return [null, null]