def _discover(hass, config, component_name, found_tellcore_devices):
 if (not len(found_tellcore_devices)):
  return
 _LOGGER.info('Discovered %d new %s devices', len(found_tellcore_devices), component_name)
 signal_repetitions = config[DOMAIN].get(ATTR_SIGNAL_REPETITIONS)
 discovery.load_platform(hass, component_name, DOMAIN, {ATTR_DISCOVER_DEVICES: found_tellcore_devices, ATTR_DISCOVER_CONFIG: signal_repetitions}, config)

def _discover ( hass , config , component_name , found_tellcore_devices ) : if ( not len ( found_tellcore_devices ) ) : return _LOGGER . info ( 'Discovered %d new %s devices' , len ( found_tellcore_devices ) , component_name ) signal_repetitions = config [ DOMAIN ] . get ( ATTR_SIGNAL_REPETITIONS ) discovery . load_platform ( hass , component_name , DOMAIN , { ATTR_DISCOVER_DEVICES : found_tellcore_devices , ATTR_DISCOVER_CONFIG : signal_repetitions } , config )
setup and send the discovery event .