#NEWLINE# @ Throttle ( MIN_TIME_BETWEEN_SWITCH_UPDATES ) #NEWLINE# def request_switches( ) : #NEWLINE# #INDENT# 'Make request to online service.' #NEWLINE# _LOGGER . debug ( 'Updating switches from Telldus Live' ) #NEWLINE# switches = NETWORK . request ( 'devices/list' ) [ 'device' ] #NEWLINE# switches = { switch [ 'id' ] : switch for switch in switches if ( switch [ 'type' ] == 'device' ) } #NEWLINE# return switches