mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Use manufacturer id only for configure_reporting only when specified. (#19729)
This commit is contained in:
parent
65c7bdc1ad
commit
ed8f89df74
@ -67,10 +67,13 @@ async def configure_reporting(entity_id, cluster, attr, skip_bind=False,
|
|||||||
|
|
||||||
attr_name = cluster.attributes.get(attr, [attr])[0]
|
attr_name = cluster.attributes.get(attr, [attr])[0]
|
||||||
cluster_name = cluster.ep_attribute
|
cluster_name = cluster.ep_attribute
|
||||||
|
kwargs = {}
|
||||||
|
if manufacturer:
|
||||||
|
kwargs['manufacturer'] = manufacturer
|
||||||
try:
|
try:
|
||||||
res = await cluster.configure_reporting(attr, min_report,
|
res = await cluster.configure_reporting(attr, min_report,
|
||||||
max_report, reportable_change,
|
max_report, reportable_change,
|
||||||
manufacturer=manufacturer)
|
**kwargs)
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"%s: reporting '%s' attr on '%s' cluster: %d/%d/%d: Result: '%s'",
|
"%s: reporting '%s' attr on '%s' cluster: %d/%d/%d: Result: '%s'",
|
||||||
entity_id, attr_name, cluster_name, min_report, max_report,
|
entity_id, attr_name, cluster_name, min_report, max_report,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user