mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-05 01:54:22 +08:00
test: Check for correct interface in test-thermometer
This commit is contained in:
parent
21589560a5
commit
ca2f14cd10
@ -30,6 +30,8 @@ class Watcher(dbus.service.Object):
|
||||
print("Type: ", measure["Type"])
|
||||
|
||||
def properties_changed(interface, changed, invalidated):
|
||||
if interface != "org.bluez.Thermometer":
|
||||
return
|
||||
for name, value in changed.iteritems():
|
||||
print("Property %s changed: %s" % (name, str(value)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user