Fix ZHA exception when writing cie_addr during configuration (#101087)

Fix ZHA exception when writing `cie_addr`
This commit is contained in:
TheJulianJES 2023-09-29 03:56:17 +02:00 committed by Franck Nijhof
parent bae3379938
commit 3f57c33f32
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -369,12 +369,11 @@ class IASZoneClusterHandler(ClusterHandler):
ieee = self.cluster.endpoint.device.application.state.node_info.ieee
try:
res = await self.write_attributes_safe({"cie_addr": ieee})
await self.write_attributes_safe({"cie_addr": ieee})
self.debug(
"wrote cie_addr: %s to '%s' cluster: %s",
"wrote cie_addr: %s to '%s' cluster",
str(ieee),
self._cluster.ep_attribute,
res[0],
)
except HomeAssistantError as ex:
self.debug(