Add trigger_logs and double_click to dump_devinfo helper (#1208)

This commit is contained in:
Steven B. 2024-10-29 09:50:27 +00:00 committed by GitHub
parent 450bcf0bde
commit 7483411ca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

View File

@ -702,14 +702,6 @@ async def get_smart_test_calls(protocol: SmartProtocol):
should_succeed=False,
child_device_id="",
),
SmartCall(
module="trigger_logs",
request=SmartRequest.get_raw_request(
"get_trigger_logs", SmartRequest.GetTriggerLogsParams()
).to_dict(),
should_succeed=False,
child_device_id="",
),
]
click.echo("Testing component_nego call ..", nl=False)

View File

@ -408,6 +408,12 @@ COMPONENT_REQUESTS = {
SmartRequest.get_raw_request("get_alarm_configure"),
],
"alarm_logs": [SmartRequest.get_raw_request("get_alarm_triggers")],
"trigger_log": [
SmartRequest.get_raw_request(
"get_trigger_logs", SmartRequest.GetTriggerLogsParams()
)
],
"double_click": [SmartRequest.get_raw_request("get_double_click_info")],
"child_device": [
SmartRequest.get_raw_request("get_child_device_list"),
SmartRequest.get_raw_request("get_child_device_component_list"),