API Sleep Time Fix

This commit is contained in:
JonatanRek 2019-11-26 13:32:08 +01:00
parent 88152ebeae
commit a5a5baffc9

View File

@ -195,7 +195,7 @@ if ($values != null || $values != "") {
$subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId); $subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId);
if (!in_array($subDevicesTypeList, ['on/off', 'door', 'water'])) { if (!in_array($subDevicesTypeList, ['on/off', 'door', 'water'])) {
$jsonAnswer['sleepTime'] = $device['sleep_time']; $jsonAnswer['device']['sleepTime'] = $device['sleep_time'];
} }
echo json_encode($jsonAnswer); echo json_encode($jsonAnswer);
header("HTTP/1.1 200 OK"); header("HTTP/1.1 200 OK");