def request_configuration(network, hass, config):
 configurator = get_component('configurator')
 if ('ecobee' in _CONFIGURING):
  configurator.notify_errors(_CONFIGURING['ecobee'], 'Failed to register, please try again.')
  return
 def ecobee_configuration_callback(callback_data):
  'The actions to do when our configuration callback is called.'
  network.request_tokens()
  network.update()
  setup_ecobee(hass, network, config)
 _CONFIGURING['ecobee'] = configurator.request_config(hass, 'Ecobee', ecobee_configuration_callback, description=('Please authorize this app at https://www.ecobee.com/consumerportal/index.html with pin code: ' + network.pin), description_image='/static/images/config_ecobee_thermostat.png', submit_caption='I have authorized the app.')

def request_configuration ( network , hass , config ) : configurator = get_component ( 'configurator' ) if ( 'ecobee' in _CONFIGURING ) : configurator . notify_errors ( _CONFIGURING [ 'ecobee' ] , 'Failed to register, please try again.' ) return def ecobee_configuration_callback ( callback_data ) : network . request_tokens ( ) network . update ( ) setup_ecobee ( hass , network , config ) _CONFIGURING [ 'ecobee' ] = configurator . request_config ( hass , 'Ecobee' , ecobee_configuration_callback , description = ( 'Please authorize this app at https://www.ecobee.com/consumerportal/index.html with pin code: ' + network . pin ) , description_image = '/static/images/config_ecobee_thermostat.png' , submit_caption = 'I have authorized the app.' )
request configuration steps from the user .