Skip to content

Commit

Permalink
Show parameters of call on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Oct 31, 2023
1 parent 14279b8 commit a3e89eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/zha_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,11 @@ async def toolkit_service(service):
u.get_hass(zha_gw).bus.fire(params[p.EVT_DONE], event_data)

if handler_exception is not None:
LOGGER.error(
"Exception '%s' for service call with data '%r'",
params[p.EVT_DONE],
event_data,
)
raise handler_exception

if not event_data["success"] and params[p.FAIL_EXCEPTION]:
Expand Down

0 comments on commit a3e89eb

Please sign in to comment.