def _setup_server(hass, config):
 conf = config.get(DOMAIN, {})
 if ((CONF_EMBEDDED not in conf) and (CONF_BROKER in conf)):
  return None
 server = prepare_setup_platform(hass, config, DOMAIN, 'server')
 if (server is None):
  _LOGGER.error('Unable to load embedded server')
  return None
 (success, broker_config) = server.start(hass, conf.get(CONF_EMBEDDED))
 return (success and broker_config)

def _setup_server ( hass , config ) : conf = config . get ( DOMAIN , { } ) if ( ( CONF_EMBEDDED not in conf ) and ( CONF_BROKER in conf ) ) : return None server = prepare_setup_platform ( hass , config , DOMAIN , 'server' ) if ( server is None ) : _LOGGER . error ( 'Unable to load embedded server' ) return None ( success , broker_config ) = server . start ( hass , conf . get ( CONF_EMBEDDED ) ) return ( success and broker_config )
try to start embedded mqtt broker .