mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Use proper schema for the analog pin shorthand (#2103)
The wrong error message is displayed like: > GPIO17 (TOUT) is an analog-only pin on the ESP8266. in case of the analog pin validation because the method `shorthand_analog_pin` uses wrong `GPIO_FULL_INPUT_PIN_SCHEMA` instead of `GPIO_FULL_ANALOG_PIN_SCHEMA`.
This commit is contained in:
		
				
					committed by
					
						 Otto winter
						Otto winter
					
				
			
			
				
	
			
			
			
						parent
						
							a6fac2b175
						
					
				
				
					commit
					bdbd813455
				
			| @@ -1104,7 +1104,7 @@ def shorthand_input_pullup_pin(value): | ||||
|  | ||||
| def shorthand_analog_pin(value): | ||||
|     value = analog_pin(value) | ||||
|     return GPIO_FULL_INPUT_PIN_SCHEMA({CONF_NUMBER: value}) | ||||
|     return GPIO_FULL_ANALOG_PIN_SCHEMA({CONF_NUMBER: value}) | ||||
|  | ||||
|  | ||||
| def validate_has_interrupt(value): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user