def get_power(**kwargs):
 with _IpmiCommand(**kwargs) as s:
  return s.get_power()['powerstate']

def get_power ( ** kwargs ) : with _IpmiCommand ( ** kwargs ) as s : return s . get_power ( ) [ 'powerstate' ]
get current power state the response .