1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 00:32:20 +01:00

Upgrade pylint on python 3 to fix travis

This commit is contained in:
Otto Winter
2019-02-28 10:33:22 +01:00
parent 7c65d44976
commit c123f0091d
3 changed files with 5 additions and 5 deletions

View File

@@ -290,7 +290,7 @@ def analog_pin(value):
if 32 <= value <= 39: # ADC1
return value
raise vol.Invalid(u"ESP32: Only pins 32 though 39 support ADC.")
elif CORE.is_esp8266:
if CORE.is_esp8266:
if value == 17: # A0
return value
raise vol.Invalid(u"ESP8266: Only pin A0 (17) supports ADC.")