We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc97b48 commit e248b30Copy full SHA for e248b30
switchbot/devices/device.py
@@ -423,8 +423,9 @@ def _check_command_result(
423
) -> bool:
424
"""Check command result."""
425
if not result or len(result) - 1 < index:
426
+ result_hex = result.hex() if result else "None"
427
raise SwitchbotOperationError(
- f"{self.name}: Sending command failed (rssi={self.rssi})"
428
+ f"{self.name}: Sending command failed (result={result_hex} index={index} expected={values} rssi={self.rssi})"
429
)
430
return result[index] in values
431
0 commit comments