forked from platypush/platypush
Return of get_measurement should always be a dict
This commit is contained in:
parent
5b5e861f94
commit
63890f7670
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class SensorDistanceBackend(SensorBackend):
|
|||
def get_measurement(self):
|
||||
""" get_measurement implementation """
|
||||
plugin = get_plugin('gpio.sensor.distance')
|
||||
return plugin.get_data().output
|
||||
return {"distance": plugin.get_data().output }
|
||||
|
||||
|
||||
# vim:sw=4:ts=4:et:
|
||||
|
|
Loading…
Reference in a new issue