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:
parent
21a5b860ae
commit
2e982faba1
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user