Convert config.components to a set (#5824)

This commit is contained in:
Paulus Schoutsen 2017-02-09 10:21:57 -08:00 committed by Johann Kellerman
parent f3b9fa2f41
commit c54517de90
44 changed files with 118 additions and 104 deletions

View file

@ -151,7 +151,7 @@ class EntityComponent(object):
entity_platform.add_entities, discovery_info
)
self.hass.config.components.append(
self.hass.config.components.add(
'{}.{}'.format(self.domain, platform_type))
except Exception: # pylint: disable=broad-except
self.logger.exception(