Cleanup ZHA from Zigpy deprecated property removal (#91180)

pull/91188/head
David F. Mulcahey 2023-04-10 14:16:11 -04:00 committed by GitHub
parent e8142987a7
commit 0fee49a32e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class LightLink(ZigbeeChannel):
application = self._ch_pool.endpoint.device.application
try:
coordinator = application.get_device(application.ieee)
coordinator = application.get_device(application.state.node_info.ieee)
except KeyError:
self.warning("Aborting - unable to locate required coordinator device.")
return

View File

@ -363,7 +363,7 @@ class IASZoneChannel(ZigbeeChannel):
self.debug("started IASZoneChannel configuration")
await self.bind()
ieee = self.cluster.endpoint.device.application.ieee
ieee = self.cluster.endpoint.device.application.state.node_info.ieee
try:
res = await self._cluster.write_attributes({"cie_addr": ieee})