mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fix erroneous validation. Fixes OttoWinter/esphomelib#59
This commit is contained in:
		| @@ -11,7 +11,7 @@ ESP_PLATFORMS = [ESP_PLATFORM_ESP8266] | |||||||
|  |  | ||||||
|  |  | ||||||
| def valid_pwm_pin(value): | def valid_pwm_pin(value): | ||||||
|     if value[CONF_NUMBER] >= 16: |     if value[CONF_NUMBER] > 16: | ||||||
|         raise ESPHomeYAMLError(u"ESP8266: Only pins 0-16 support PWM.") |         raise ESPHomeYAMLError(u"ESP8266: Only pins 0-16 support PWM.") | ||||||
|     return value |     return value | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user