Fix zwave power_consumption attribute (#8968)
This commit is contained in:
1 parent
fc8e8e5d8c
commit
a8a037db49
2 files changed
+52
-4
No files matched your search
@@ -54,9 +54,12 @@ def check_value_schema(value, schema):
|
||||
value.instance, schema[const.DISC_INSTANCE])
|
||||
return False
|
||||
if const.DISC_SCHEMAS in schema:
|
||||
found = False
|
||||
for schema_item in schema[const.DISC_SCHEMAS]:
|
||||
if not check_value_schema(value, schema_item):
|
||||
return False
|
||||
found = found or check_value_schema(value, schema_item)
|
||||
if not found:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user