mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fix time period validation for the auto cleaning interval (#4811)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							7f83a6e667
						
					
				
				
					commit
					8e4aeec3bd
				
			| @@ -119,7 +119,7 @@ CONFIG_SCHEMA = ( | |||||||
|                 device_class=DEVICE_CLASS_PM10, |                 device_class=DEVICE_CLASS_PM10, | ||||||
|                 state_class=STATE_CLASS_MEASUREMENT, |                 state_class=STATE_CLASS_MEASUREMENT, | ||||||
|             ), |             ), | ||||||
|             cv.Optional(CONF_AUTO_CLEANING_INTERVAL): cv.time_period_in_seconds_, |             cv.Optional(CONF_AUTO_CLEANING_INTERVAL): cv.update_interval, | ||||||
|             cv.Optional(CONF_VOC): sensor.sensor_schema( |             cv.Optional(CONF_VOC): sensor.sensor_schema( | ||||||
|                 icon=ICON_RADIATOR, |                 icon=ICON_RADIATOR, | ||||||
|                 accuracy_decimals=0, |                 accuracy_decimals=0, | ||||||
|   | |||||||
| @@ -489,6 +489,7 @@ sensor: | |||||||
|       offset: 0 |       offset: 0 | ||||||
|       normalized_offset_slope: 0 |       normalized_offset_slope: 0 | ||||||
|       time_constant: 0 |       time_constant: 0 | ||||||
|  |     auto_cleaning_interval: 604800s | ||||||
|     acceleration_mode: low |     acceleration_mode: low | ||||||
|     store_baseline: true |     store_baseline: true | ||||||
|     address: 0x69 |     address: 0x69 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user