@ -64,6 +64,7 @@ async function apiCall(widget, endpoint, service) {
if (status !== 200) {
logger.error("Error getting data from Homebridge: %s status %d. Data: %s", url, status, data);
return { status, contentType, data: null, responseHeaders };
}
return { status, contentType, data: JSON.parse(data.toString()), responseHeaders };