mirror of
				https://github.com/beestat/app.git
				synced 2025-11-04 02:47:01 -05: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
 | 
					     * 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.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user