Use manufacturer id only for configure_reporting only when specified. (#19729)

pull/19897/head
Alexei Chetroi 2019-01-04 16:05:37 -05:00 committed by Paulus Schoutsen
parent afa0d37ff0
commit 3453d31f01
1 changed files with 4 additions and 1 deletions

View File

@ -67,10 +67,13 @@ async def configure_reporting(entity_id, cluster, attr, skip_bind=False,
attr_name = cluster.attributes.get(attr, [attr])[0]
cluster_name = cluster.ep_attribute
kwargs = {}
if manufacturer:
kwargs['manufacturer'] = manufacturer
try:
res = await cluster.configure_reporting(attr, min_report,
max_report, reportable_change,
manufacturer=manufacturer)
**kwargs)
_LOGGER.debug(
"%s: reporting '%s' attr on '%s' cluster: %d/%d/%d: Result: '%s'",
entity_id, attr_name, cluster_name, min_report, max_report,