Skip to content

Commit

Permalink
Fix ihc issues caused by update to defusedxml (home-assistant#20091)
Browse files Browse the repository at this point in the history
* Update __init__.py

* Update __init__.py
  • Loading branch information
mopolus authored and fabaff committed Jan 14, 2019
1 parent ef79566 commit e505a9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/ihc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ def get_discovery_info(component_setup, groups, controller_id):
'ihc_id': ihc_id,
'ctrl_id': controller_id,
'product': {
'name': product.attrib['name'],
'note': product.attrib['note'],
'position': product.attrib['position']},
'name': product.get('name') or '',
'note': product.get('note') or '',
'position': product.get('position') or ''},
'product_cfg': product_cfg}
discovery_data[name] = device
return discovery_data
Expand Down

0 comments on commit e505a9b

Please sign in to comment.