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:
parent
6e9a67c987
commit
c6bc75d0ac
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user