Don't discover entities or initialize cluster channels for the coordinator in ZHA (#72442)

don't discover coord entities or init channels
This commit is contained in:
David F. Mulcahey 2022-05-24 19:44:33 -04:00 committed by GitHub
parent 0c2f22d478
commit 7aca007a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -277,6 +277,7 @@ class ChannelPool:
pool = cls(channels, ep_id)
pool.add_all_channels()
pool.add_client_channels()
if not channels.zha_device.is_coordinator:
zha_disc.PROBE.discover_entities(pool)
return pool

View File

@ -273,7 +273,7 @@ class ZHADevice(LogMixin):
@property
def skip_configuration(self) -> bool:
"""Return true if the device should not issue configuration related commands."""
return self._zigpy_device.skip_configuration
return self._zigpy_device.skip_configuration or self.is_coordinator
@property
def gateway(self):