Skip to content

Commit

Permalink
Merge branch 'master' into main
Browse files Browse the repository at this point in the history
# Conflicts:
#	tuya_iot/version.py
  • Loading branch information
zlinoliver committed Dec 25, 2021
2 parents 66bb0a0 + 65f3979 commit 2a3e473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tuya_iot/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def get_category_functions(self, categoryId: str) -> dict[str, Any]:

# https://developer.tuya.com/en/docs/cloud/device-control?id=K95zu01ksols7#title-27-Get%20the%20specifications%20and%20properties%20of%20the%20device%2C%20including%20the%20instruction%20set%20and%20status%20set
def get_device_specification(self, device_id: str) -> dict[str, str]:
return self.api.get(f"/v1.2/iot-03/devices/{device_id}/specification")
return self.api.get(f"/v1.0/devices/{device_id}/specifications")

def get_device_stream_allocate(
self, device_id: str, stream_type: Literal["flv", "hls", "rtmp", "rtsp"]
Expand Down Expand Up @@ -693,7 +693,7 @@ def get_category_functions(self, categoryId: str) -> dict[str, Any]:

# https://developer.tuya.com/en/docs/cloud/device-control?id=K95zu01ksols7#title-27-Get%20the%20specifications%20and%20properties%20of%20the%20device%2C%20including%20the%20instruction%20set%20and%20status%20set
def get_device_specification(self, device_id: str) -> dict[str, str]:
return self.api.get(f"/v1.2/iot-03/devices/{device_id}/specification")
return self.api.get(f"/v1.0/iot-03/devices/{device_id}/specification")

def get_device_stream_allocate(
self, device_id: str, stream_type: Literal["flv", "hls", "rtmp", "rtsp"]
Expand Down
2 changes: 1 addition & 1 deletion tuya_iot/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""tuya_iot version."""

VERSION = "0.6.5"
VERSION = "0.6.6"

0 comments on commit 2a3e473

Please sign in to comment.