mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-11 09:58:01 +00:00
Initial TapoCamera support (#1165)
Adds experimental support for the Tapo Camera protocol also used by the H200 hub. Creates a new SslAesTransport and a derived SmartCamera and SmartCameraProtocol.
This commit is contained in:
@@ -64,6 +64,7 @@ class HttpClient:
|
||||
json: dict | Any | None = None,
|
||||
headers: dict[str, str] | None = None,
|
||||
cookies_dict: dict[str, str] | None = None,
|
||||
ssl=False,
|
||||
) -> tuple[int, dict | bytes | None]:
|
||||
"""Send an http post request to the device.
|
||||
|
||||
@@ -106,7 +107,7 @@ class HttpClient:
|
||||
timeout=client_timeout,
|
||||
cookies=cookies_dict,
|
||||
headers=headers,
|
||||
ssl=False,
|
||||
ssl=ssl,
|
||||
)
|
||||
async with resp:
|
||||
if resp.status == 200:
|
||||
|
Reference in New Issue
Block a user