1
0
mirror of https://github.com/beestat/app.git synced 2025-05-31 20:26:32 -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
* requested for some reason.
*/
if (count($response['sensorList']) > 0) {
$ecobee_columns = $response['sensorList'][0]['columns'];
$columns_begin = $this->get_columns(
$response['sensorList'][0]['data'][0],
@ -624,6 +625,7 @@ class runtime extends cora\api {
}
}
}
}
/**
* Get the ecobee "interval" value from a timestamp.