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 GitHub
parent d1347d23de
commit f5d8d41ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(