mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Update dump_devinfo for smart camera protocol (#1169)
Introduces the child camera protocol wrapper, required to get the child device info with the new protocol.
This commit is contained in:
@@ -356,8 +356,8 @@ def get_component_requests(component_id, ver_code):
|
||||
if (cr := COMPONENT_REQUESTS.get(component_id)) is None:
|
||||
return None
|
||||
if callable(cr):
|
||||
return cr(ver_code)
|
||||
return cr
|
||||
return SmartRequest._create_request_dict(cr(ver_code))
|
||||
return SmartRequest._create_request_dict(cr)
|
||||
|
||||
|
||||
COMPONENT_REQUESTS = {
|
||||
|
Reference in New Issue
Block a user