mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 13:22:19 +01:00
Fix remote_receiver binary_sensor schema (#578)
Fixes https://github.com/esphome/issues/issues/353#issuecomment-497491863
This commit is contained in:
@@ -1175,7 +1175,6 @@ def validate_registry_entry(name, registry):
|
||||
if not isinstance(value, dict):
|
||||
raise Invalid(u"{} must consist of key-value mapping! Got {}"
|
||||
u"".format(name.title(), value))
|
||||
value = base_schema(value)
|
||||
key = next((x for x in value if x not in ignore_keys), None)
|
||||
if key is None:
|
||||
raise Invalid(u"Key missing from {}! Got {}".format(name, value))
|
||||
|
Reference in New Issue
Block a user