1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-21 12:42:21 +01:00

Add neopixelbus tests

This commit is contained in:
Otto Winter
2019-01-06 16:59:11 +01:00
parent 92439abeb4
commit 52dbd35118
4 changed files with 36 additions and 19 deletions

View File

@@ -54,9 +54,9 @@ def validate_method(value):
raise NotImplementedError
if CORE.is_esp32:
return cv.one_of(*ESP32_METHODS, upper=True, space='_')
return cv.one_of(*ESP32_METHODS, upper=True, space='_')(value)
if CORE.is_esp8266:
return cv.one_of(*ESP8266_METHODS, upper=True, space='_')
return cv.one_of(*ESP8266_METHODS, upper=True, space='_')(value)
raise NotImplementedError