mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 08:55:22 +01:00
Simplify validator
This commit is contained in:
parent
e72ef9e061
commit
30bd74cb6c
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ MODELS = {
|
||||||
'SH1106_64X48': SSD1306Model.SH1106_MODEL_64_48,
|
'SH1106_64X48': SSD1306Model.SH1106_MODEL_64_48,
|
||||||
}
|
}
|
||||||
|
|
||||||
SSD1306_MODEL = vol.All(vol.Replace(' ', '_'), cv.one_of(*MODELS, upper=True))
|
SSD1306_MODEL = cv.one_of(*MODELS, upper=True, space="_")
|
||||||
|
|
||||||
PLATFORM_SCHEMA = display.FULL_DISPLAY_PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = display.FULL_DISPLAY_PLATFORM_SCHEMA.extend({
|
||||||
cv.GenerateID(): cv.declare_variable_id(SPISSD1306),
|
cv.GenerateID(): cv.declare_variable_id(SPISSD1306),
|
||||||
|
|
Loading…
Reference in a new issue