From ed8f89df743e027aa6105601c3e7ea1dd728f7c9 Mon Sep 17 00:00:00 2001 From: Alexei Chetroi Date: Fri, 4 Jan 2019 16:05:37 -0500 Subject: [PATCH] Use manufacturer id only for configure_reporting only when specified. (#19729) --- homeassistant/components/zha/helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zha/helpers.py b/homeassistant/components/zha/helpers.py index 426bceeb634..3212849f721 100644 --- a/homeassistant/components/zha/helpers.py +++ b/homeassistant/components/zha/helpers.py @@ -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,