mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
use newly added is_server for cluster reporting (#26533)
This commit is contained in:
committed by
Alexei Chetroi
parent
28beebac61
commit
fec6706bf7
@@ -50,7 +50,7 @@ class FakeEndpoint:
|
||||
"""Add an input cluster."""
|
||||
from zigpy.zcl import Cluster
|
||||
|
||||
cluster = Cluster.from_id(self, cluster_id)
|
||||
cluster = Cluster.from_id(self, cluster_id, is_server=True)
|
||||
patch_cluster(cluster)
|
||||
self.in_clusters[cluster_id] = cluster
|
||||
if hasattr(cluster, "ep_attribute"):
|
||||
@@ -60,7 +60,7 @@ class FakeEndpoint:
|
||||
"""Add an output cluster."""
|
||||
from zigpy.zcl import Cluster
|
||||
|
||||
cluster = Cluster.from_id(self, cluster_id)
|
||||
cluster = Cluster.from_id(self, cluster_id, is_server=False)
|
||||
patch_cluster(cluster)
|
||||
self.out_clusters[cluster_id] = cluster
|
||||
|
||||
|
||||
Reference in New Issue
Block a user