Skip to content

Commit

Permalink
Templates: Fix importing dict type. #116
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Feb 25, 2024
1 parent bcf5358 commit cf696df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def import_config(filename):
for key, value in values.items():
ent[str(key)] = (
str(value)
if type(value) is not bool and type(value) is not float
if not isinstance(value, (bool, float, dict, list))
else value
)
ent[CONF_PLATFORM] = plat
Expand Down

0 comments on commit cf696df

Please sign in to comment.