Convert config.components to a set (#5824)
This commit is contained in:
parent
f3b9fa2f41
commit
c54517de90
44 changed files with 118 additions and 104 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue