From 3f57c33f3219b4b9e7bcef611cec9a68e4ba297c Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Fri, 29 Sep 2023 03:56:17 +0200 Subject: [PATCH] Fix ZHA exception when writing `cie_addr` during configuration (#101087) Fix ZHA exception when writing `cie_addr` --- .../components/zha/core/cluster_handlers/security.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/zha/core/cluster_handlers/security.py b/homeassistant/components/zha/core/cluster_handlers/security.py index f31830f0bd8..9c74a14daa8 100644 --- a/homeassistant/components/zha/core/cluster_handlers/security.py +++ b/homeassistant/components/zha/core/cluster_handlers/security.py @@ -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(