From 54a3643605029b4eb6e382a6ee704c200c259aae Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 2 Jul 2019 14:39:04 +0200 Subject: [PATCH] Added name and value props to sensor component --- .../backend/http/static/js/plugins/sensors/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/platypush/backend/http/static/js/plugins/sensors/index.js b/platypush/backend/http/static/js/plugins/sensors/index.js index 87dc1d89..14cb036d 100644 --- a/platypush/backend/http/static/js/plugins/sensors/index.js +++ b/platypush/backend/http/static/js/plugins/sensors/index.js @@ -5,9 +5,12 @@ Vue.component('sensor-metric', { type: Object, }, - device: { - type: Object, - default: () => {}, + name: { + type: String, + }, + + value: { + type: [String, Number, Object, Boolean, Array], }, }, });