#NEWLINE# @ Throttle ( MIN_TIME_BETWEEN_SENSOR_UPDATES ) #NEWLINE# def request_sensors( ) : #NEWLINE# #INDENT# 'Make request to online service.' #NEWLINE# _LOGGER . debug ( 'Updating sensors from Telldus Live' ) #NEWLINE# units = NETWORK . request ( 'sensors/list' ) [ 'sensor' ] #NEWLINE# sensors = { ( unit [ 'id' ] + unit [ 'name' ] ) : dict ( unit , data = sensor ) for unit in units for sensor in unit [ 'data' ] } #NEWLINE# return sensors