def setup_ecobee(hass, network, config):
 if (network.pin is not None):
  request_configuration(network, hass, config)
  return
 if ('ecobee' in _CONFIGURING):
  configurator = get_component('configurator')
  configurator.request_done(_CONFIGURING.pop('ecobee'))
 hold_temp = config[DOMAIN].get(CONF_HOLD_TEMP)
 discovery.load_platform(hass, 'climate', DOMAIN, {'hold_temp': hold_temp}, config)
 discovery.load_platform(hass, 'sensor', DOMAIN, {}, config)
 discovery.load_platform(hass, 'binary_sensor', DOMAIN, {}, config)

def setup_ecobee ( hass , network , config ) : if ( network . pin is not None ) : request_configuration ( network , hass , config ) return if ( 'ecobee' in _CONFIGURING ) : configurator = get_component ( 'configurator' ) configurator . request_done ( _CONFIGURING . pop ( 'ecobee' ) ) hold_temp = config [ DOMAIN ] . get ( CONF_HOLD_TEMP ) discovery . load_platform ( hass , 'climate' , DOMAIN , { 'hold_temp' : hold_temp } , config ) discovery . load_platform ( hass , 'sensor' , DOMAIN , { } , config ) discovery . load_platform ( hass , 'binary_sensor' , DOMAIN , { } , config )
setup ecobee thermostat .