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

Fixed sync failing for users with no sensors.

This commit is contained in:
Jon Ziebell 2020-01-14 21:21:03 -05:00
parent 21a5b860ae
commit 2e982faba1

View File

@ -511,6 +511,7 @@ class runtime extends cora\api {
* actually returned just in case the returned data goes outside of what I * actually returned just in case the returned data goes outside of what I
* requested for some reason. * requested for some reason.
*/ */
if (count($response['sensorList']) > 0) {
$ecobee_columns = $response['sensorList'][0]['columns']; $ecobee_columns = $response['sensorList'][0]['columns'];
$columns_begin = $this->get_columns( $columns_begin = $this->get_columns(
$response['sensorList'][0]['data'][0], $response['sensorList'][0]['data'][0],
@ -624,6 +625,7 @@ class runtime extends cora\api {
} }
} }
} }
}
/** /**
* Get the ecobee "interval" value from a timestamp. * Get the ecobee "interval" value from a timestamp.