#NEWLINE# def setup_platform( hass , config , add_devices_callback , discovery_info = None ) : #NEWLINE# #INDENT# 'Setup roller shutter controlled by shell commands.' #NEWLINE# rollershutters = config . get ( 'rollershutters' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# devices = [ ] #NEWLINE# for ( dev_name , properties ) in rollershutters . items ( ) : #NEWLINE# #INDENT# devices . append ( CommandRollershutter ( hass , properties . get ( 'name' , dev_name ) , properties . get ( 'upcmd' , 'true' ) , properties . get ( 'downcmd' , 'true' ) , properties . get ( 'stopcmd' , 'true' ) , properties . get ( 'statecmd' , False ) , properties . get ( CONF_VALUE_TEMPLATE , '{{ value }}' ) ) ) #NEWLINE# #UNINDENT# add_devices_callback ( dev_name )