update_temp at startup from restored temp_today
This commit is contained in:
		
							
								
								
									
										2
									
								
								pool.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pool.js
									
									
									
									
									
								
							@@ -297,6 +297,8 @@ Shelly.call (
 | 
				
			|||||||
    if (result) {
 | 
					    if (result) {
 | 
				
			||||||
      status.temp_today = result.value;
 | 
					      status.temp_today = result.value;
 | 
				
			||||||
      print("[POOL] Restore from KVS: temp_today:", status.temp_today);
 | 
					      print("[POOL] Restore from KVS: temp_today:", status.temp_today);
 | 
				
			||||||
 | 
					      if (status.temp_today !== null)
 | 
				
			||||||
 | 
					        update_temp(status.temp_today);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user