Skip to content

Commit

Permalink
Update xt_tuya_iot_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
azerty9971 committed Jan 27, 2025
1 parent fb729c6 commit 6cbf4d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def get_open_api_device(self, device: XTDevice) -> XTDevice | None:
code = dp_property["code"]
if code not in device_properties.status_range and code not in device_properties.function:
if ( "access_mode" in device_properties.local_strategy[dp_id]
and device_properties.local_strategy[dp_id]["access_mode"] in ("rw", "wr")):
and device_properties.local_strategy[dp_id]["access_mode"] in ["rw", "wr"]):
device_properties.function[code] = XTDeviceFunction(code=code,
type=device_properties.local_strategy[dp_id]["config_item"]["valueType"],
values=device_properties.local_strategy[dp_id]["config_item"]["valueDesc"],
Expand Down

0 comments on commit 6cbf4d9

Please sign in to comment.