def get_sensor_data(**kwargs):
 import ast
 with _IpmiCommand(**kwargs) as s:
  data = {}
  for reading in s.get_sensor_data():
   if reading:
    r = ast.literal_eval(repr(reading))
    data[r.pop('name')] = r
 return data

def get_sensor_data ( ** kwargs ) : import ast with _IpmiCommand ( ** kwargs ) as s : data = { } for reading in s . get_sensor_data ( ) : if reading : r = ast . literal_eval ( repr ( reading ) ) data [ r . pop ( 'name' ) ] = r return data
get sensor readings iterates sensor reading objects .