From 923a5990c7ebb314ca6f894256d102cabe39d31c Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 5 Jun 2018 22:32:34 +0200 Subject: [PATCH] Fix erroneous validation. Fixes OttoWinter/esphomelib#59 --- esphomeyaml/components/output/esp8266_pwm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/components/output/esp8266_pwm.py b/esphomeyaml/components/output/esp8266_pwm.py index 07cb57b666..fec86a3ba9 100644 --- a/esphomeyaml/components/output/esp8266_pwm.py +++ b/esphomeyaml/components/output/esp8266_pwm.py @@ -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