blob: 0f993e7d2643aa4a5171b5819f15d9a76444ad74 [file] [log] [blame] [edit]
#!/usr/bin/env python3
# Copyright 2019 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import dbus
import flimflam
flim = flimflam.FlimFlam(dbus.SystemBus())
for obj in flim.GetObjectList('Device'):
obj_properties = obj.GetProperties()
print('[ %s ]' % (obj.object_path))
for key in obj_properties.keys():
print(' %s = %s' %
(key, flimflam.convert_dbus_value(obj_properties[key], 4)))
print('')