mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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:
parent
0c2f22d478
commit
7aca007a9a
@ -277,7 +277,8 @@ class ChannelPool:
|
|||||||
pool = cls(channels, ep_id)
|
pool = cls(channels, ep_id)
|
||||||
pool.add_all_channels()
|
pool.add_all_channels()
|
||||||
pool.add_client_channels()
|
pool.add_client_channels()
|
||||||
zha_disc.PROBE.discover_entities(pool)
|
if not channels.zha_device.is_coordinator:
|
||||||
|
zha_disc.PROBE.discover_entities(pool)
|
||||||
return pool
|
return pool
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
@ -273,7 +273,7 @@ class ZHADevice(LogMixin):
|
|||||||
@property
|
@property
|
||||||
def skip_configuration(self) -> bool:
|
def skip_configuration(self) -> bool:
|
||||||
"""Return true if the device should not issue configuration related commands."""
|
"""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
|
@property
|
||||||
def gateway(self):
|
def gateway(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user