Clean up Z-wave error log when raising in service handlers (#125138)

This commit is contained in:
Martin Hjelmare 2024-09-03 15:49:11 +02:00 committed by GitHub
parent 8e3ad2d1f3
commit 7c15075231
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 8 deletions

View file

@ -335,5 +335,6 @@ class ZWaveBaseEntity(Entity):
value, new_value, options=options, wait_for_result=wait_for_result
)
except BaseZwaveJSServerError as err:
LOGGER.error("Unable to set value %s: %s", value.value_id, err)
raise HomeAssistantError from err
raise HomeAssistantError(
f"Unable to set value {value.value_id}: {err}"
) from err