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

Neopixelbus redo method definitions (#2616)

This commit is contained in:
Otto Winter
2021-11-10 19:35:31 +01:00
committed by GitHub
parent d8e33c5a69
commit 8aa72f4c1e
6 changed files with 585 additions and 112 deletions

View File

@@ -1399,7 +1399,7 @@ def typed_schema(schemas, **kwargs):
if schema_option is None:
raise Invalid(f"{key} not specified!")
key_v = key_validator(schema_option)
value = schemas[key_v](value)
value = Schema(schemas[key_v])(value)
value[key] = key_v
return value