This commit is contained in:
Ken Van Hoeylandt 2026-02-09 00:26:23 +01:00
parent 165051ad85
commit 603a8f478e

View File

@ -114,10 +114,10 @@ def resolve_parameters_from_bindings(device: Device, bindings: list[Binding], de
value=binding_property.default
)
result[index] = property_to_string(temp_prop, devices)
elif binding_property.type == "bool":
result[index] = "false"
elif binding_property.required:
raise DevicetreeException(f"device {device.node_name} doesn't have property '{binding_property.name}'")
elif binding_property.type == "bool":
result[index] = "false"
else:
raise DevicetreeException(f"Device {device.node_name} doesn't have property '{binding_property.name}' and no default value is set")
else: