

def setup(self, config):
    'Set up a full entity component.\n\n        Loads the platforms from the config and will listen for supported\n        discovered platforms.\n        '
    self.config = config
    for (p_type, p_config) in config_per_platform(config, self.domain):
        self._setup_platform(p_type, p_config)
    if self.discovery_platforms:
        discovery.listen(self.hass, self.discovery_platforms.keys(), (lambda service, info: self._setup_platform(self.discovery_platforms[service], {
            
        }, info)))

dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/helpers/entity_component.py EntityComponent.setup/original