From c6bc75d0acfdcd5658dffb583fbdedabe6a2ea55 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 21 Jan 2020 22:16:42 -0500 Subject: [PATCH] Fixed issue with syncing sensor data. --- api/runtime.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/runtime.php b/api/runtime.php index f47a39d..2ed1015 100644 --- a/api/runtime.php +++ b/api/runtime.php @@ -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],