Skip to content

Commit

Permalink
fix #70
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuen Lee committed Sep 5, 2023
1 parent ced9ca5 commit 76a4dcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/localtuya/pytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,8 @@ def _merge_payload_dicts(dict1, dict2):
json_data[PARAMETER_DP_ID] = data
elif PARAMETER_DATA in json_data:
json_data[PARAMETER_DATA] = {PROPERTY_DPS: data}
if cid is not None:
json_data[PARAMETER_DATA][PARAMETER_CID] = cid
else:
json_data[PROPERTY_DPS] = data
elif command == CONTROL_NEW:
Expand Down

0 comments on commit 76a4dcc

Please sign in to comment.