Raise exception instead of hide in logs on zha write (#93571)

Raise exception instead of hide in logs

Write request that failed parsing of data would fail,
yet display as successful in the gui.
This commit is contained in:
Joakim Plate 2023-06-01 16:18:49 +02:00 committed by GitHub
parent 1f0e235b99
commit 9aed5a47ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 12 deletions

View file

@ -1302,6 +1302,9 @@ def async_load_api(hass: HomeAssistant) -> None:
cluster_type=cluster_type,
manufacturer=manufacturer,
)
else:
raise ValueError(f"Device with IEEE {str(ieee)} not found")
_LOGGER.debug(
(
"Set attribute for: %s: [%s] %s: [%s] %s: [%s] %s: [%s] %s: [%s] %s:"