test: Check for correct interface in test-thermometer

This commit is contained in:
Johan Hedberg 2012-11-30 15:05:47 +02:00
parent 21589560a5
commit ca2f14cd10

View File

@ -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)))