1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #398 - downloaded data - unable to distinguish between occupancy of null vs. occupancy of zero

This commit is contained in:
Jon Ziebell 2023-06-11 17:35:48 -04:00
parent 8aa608c86a
commit 6ebe758561

View File

@ -1159,7 +1159,7 @@ class runtime extends cora\api {
}
$csv_row[] = $runtime_sensors_by_timestamp[$current_timestamp][$sensor['sensor_id']]['temperature'];
$csv_row[] = $runtime_sensors_by_timestamp[$current_timestamp][$sensor['sensor_id']]['occupancy'];
$csv_row[] = ($runtime_sensors_by_timestamp[$current_timestamp][$sensor['sensor_id']]['occupancy'] === true ? '1' : '0');
}
}
} else {