Fix ihc issues caused by update to defusedxml (#20091)

* Update __init__.py

* Update __init__.py
This commit is contained in:
Morten Lüneborg 2019-01-14 13:12:57 +01:00 committed by Fabian Affolter
parent ef79566864
commit e505a9b7b4

View file

@ -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