API Sleep Time Fix
This commit is contained in:
parent
88152ebeae
commit
a5a5baffc9
2
api.php
2
api.php
@ -195,7 +195,7 @@ if ($values != null || $values != "") {
|
||||
|
||||
$subDevicesTypeList = SubDeviceManager::getSubDeviceSTypeForMater($deviceId);
|
||||
if (!in_array($subDevicesTypeList, ['on/off', 'door', 'water'])) {
|
||||
$jsonAnswer['sleepTime'] = $device['sleep_time'];
|
||||
$jsonAnswer['device']['sleepTime'] = $device['sleep_time'];
|
||||
}
|
||||
echo json_encode($jsonAnswer);
|
||||
header("HTTP/1.1 200 OK");
|
||||
|
Loading…
Reference in New Issue
Block a user