mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Fix erroneous validation. Fixes OttoWinter/esphomelib#59
This commit is contained in:
parent
a0a615c335
commit
923a5990c7
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ ESP_PLATFORMS = [ESP_PLATFORM_ESP8266]
|
|||
|
||||
|
||||
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.")
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in a new issue