Skip to content

Commit

Permalink
Fix for non-string numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Jul 23, 2024
1 parent a8c51a9 commit b22a702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/python/chip/yaml/format_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def convert_to_data_model_type(field_value, field_type):
return field_value
# YAML conversion treats all numbers as ints. Convert to a uint type if the schema
# type indicates so.
elif (field_type == uint):
elif (type(field_value) is str and field_type == uint):
# Longer number are stored as strings. Need to make this conversion first.
# The value can be represented in binary, octal, decimal or hexadecimal
# format.
Expand Down

0 comments on commit b22a702

Please sign in to comment.