8000 Upgrade Tuya IoT Python SDK to 0.6.3 by frenck · Pull Request #58240 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Upgrade Tuya IoT Python SDK to 0.6.3 #58240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions homeassistant/components/tuya/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,26 +81,11 @@ def motion_detection_enabled(self) -> bool:

async def stream_source(self) -> str | None:
"""Return the source of the stream."""

def _stream_source() -> str | None:
# This method can be replaced by the following snippet, once
# upstream changes have been merged.
#
# return self.device_manager.get_device_stream_allocate(
# self.device.id, stream_type="rtsp"
# )
#
# https://github.com/tuya/tuya-iot-python-sdk/pull/28

response = self.device_manager.api.post(
f"/v1.0/devices/{self.device.id}/stream/actions/allocate",
{"type": "rtsp"},
)
if response["success"]:
return response["result"]["url"]
return None

return await self.hass.async_add_executor_job(_stream_source)
return await self.hass.async_add_executor_job(
self.device_manager.get_device_stream_allocate,
self.device.id,
"rtsp",
)

async def async_camera_image(
self, width: int | None = None, height: int | None = None
Expand Down
24 changes: 12 additions & 12 deletions homeassistant/components/tuya/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
"domain": "tuya",
"name": "Tuya",
"documentation": "https://www.home-assistant.io/integrations/tuya",
"requirements": ["tuya-iot-py-sdk==0.5.0"],
"requirements": ["tuya-iot-py-sdk==0.6.3"],
"dependencies": ["ffmpeg"],
"codeowners": ["@Tuya", "@zlinoliver", "@METISU", "@frenck"],
"config_flow": true,
"iot_class": "cloud_push",
"dhcp": [
{"macaddress": "105A17*"},
{"macaddress": "10D561*"},
{"macaddress": "1869D8*"},
{"macaddress": "381F8D*"},
{"macaddress": "508A06*"},
{"macaddress": "68572D*"},
{"macaddress": "708976*"},
{"macaddress": "7CF666*"},
{"macaddress": "84E342*"},
{"macaddress": "D4A651*"},
{"macaddress": "D81F12*"}
{ "macaddress": "105A17*" },
{ "macaddress": "10D561*" },
{ "macaddress": "1869D8*" },
{ "macaddress": "381F8D*" },
{ "macaddress": "508A06*" },
{ "macaddress": "68572D*" },
{ "macaddress": "708976*" },
{ "macaddress": "7CF666*" },
{ "macaddress": "84E342*" },
{ "macaddress": "D4A651*" },
{ "macaddress": "D81F12*" }
]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,7 @@ tp-connected==0.0.4
transmissionrpc==0.11

# homeassistant.components.tuya
tuya-iot-py-sdk==0.5.0
tuya-iot-py-sdk==0.6.3

# homeassistant.components.twentemilieu
twentemilieu==0.3.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,7 @@ total_connect_client==0.57
transmissionrpc==0.11

# homeassistant.components.tuya
tuya-iot-py-sdk==0.5.0
tuya-iot-py-sdk==0.6.3

# homeassistant.components.twentemilieu
twentemilieu==0.3.0
Expand Down
0