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
This commit is contained in:
dario 2024-01-16 02:29:27 +01:00
parent cf305a3855
commit 3b514a8262
Signed by: dario
SSH key fingerprint: SHA256:zP7OE8nhYwOWaDhOawrP6NmUVcZWi0wyPKQa6052GpM

View file

@ -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]