#NEWLINE# def setup( hass , config ) : #NEWLINE# #INDENT# 'Setup the Telldus Live component.' #NEWLINE# if ( not validate_config ( config , { #NEWLINE# #INDENT# DOMAIN : [ CONF_PUBLIC_KEY , CONF_PRIVATE_KEY , CONF_TOKEN , CONF_TOKEN_SECRET ] , #NEWLINE# #UNINDENT# } , _LOGGER ) ) : #NEWLINE# #INDENT# _LOGGER . error ( 'Configuration Error: Please make sure you have configured your keys that can be aquired from https://api.telldus.com/keys/index' ) #NEWLINE# return False #NEWLINE# #UNINDENT# global NETWORK #NEWLINE# NETWORK = TelldusLiveData ( hass , config ) #NEWLINE# if ( not NETWORK . validate_session ( ) ) : #NEWLINE# #INDENT# _LOGGER . error ( 'Authentication Error: Please make sure you have configured your keys that can be aquired from https://api.telldus.com/keys/index' ) #NEWLINE# return False #NEWLINE# #UNINDENT# NETWORK . discover ( ) #NEWLINE# return True