1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed issue with syncing sensor data.

This commit is contained in:
Jon Ziebell 2020-01-21 22:16:42 -05:00
parent 6e9a67c987
commit c6bc75d0ac

View File

@ -511,7 +511,10 @@ class runtime extends cora\api {
* actually returned just in case the returned data goes outside of what I
* requested for some reason.
*/
if (count($response['sensorList']) > 0) {
if (
count($response['sensorList']) > 0 &&
count($response['sensorList'][0]['data']) > 0
) {
$ecobee_columns = $response['sensorList'][0]['columns'];
$columns_begin = $this->get_columns(
$response['sensorList'][0]['data'][0],