Skip to content

Commit

Permalink
Use manufacturer id only for configure_reporting only when specified. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Adminiuga authored and balloob committed Jan 4, 2019
1 parent 65c7bdc commit ed8f89d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/zha/helpers.py
Expand Up @@ -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,
Expand Down

0 comments on commit ed8f89d

Please sign in to comment.