Return explicit float for IAQ value
This commit is contained in:
		@@ -474,7 +474,7 @@ sensor:
 | 
				
			|||||||
    icon: "mdi:gauge"
 | 
					    icon: "mdi:gauge"
 | 
				
			||||||
    # caulculation: comp_gas = log(R_gas[ohm]) + 0.04 log(Ohm)/%rh * hum[%rh]
 | 
					    # caulculation: comp_gas = log(R_gas[ohm]) + 0.04 log(Ohm)/%rh * hum[%rh]
 | 
				
			||||||
    lambda: |-
 | 
					    lambda: |-
 | 
				
			||||||
      return log(id(bme680_gas_resistance).state) + 0.04 *  id(bme680_humidity).state;
 | 
					      return float(log(id(bme680_gas_resistance).state) + 0.04 *  id(bme680_humidity).state);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - platform: tsl2591
 | 
					  - platform: tsl2591
 | 
				
			||||||
    address: 0x29
 | 
					    address: 0x29
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user