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
+1 -1
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