mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-11-24 18:28:21 +00:00
Do not raise on multi-request errors on child devices (#949)
This will avoid crashing when some commands return an error on multi-requests on child devices. Idea from https://github.com/python-kasa/python-kasa/pull/900/files#r1624803457
This commit is contained in:
@@ -402,7 +402,9 @@ class _ChildProtocolWrapper(SmartProtocol):
|
||||
ret_val = {}
|
||||
for multi_response in multi_responses:
|
||||
method = multi_response["method"]
|
||||
self._handle_response_error_code(multi_response, method)
|
||||
self._handle_response_error_code(
|
||||
multi_response, method, raise_on_error=False
|
||||
)
|
||||
ret_val[method] = multi_response.get("result")
|
||||
return ret_val
|
||||
|
||||
|
||||
Reference in New Issue
Block a user