From c3cb0a3a4a004fb59e4e5b06aec5ecba6587e321 Mon Sep 17 00:00:00 2001
From: Przemyslaw Kacprowicz
Date: Fri, 24 Jul 2020 12:08:28 +0200
Subject: [PATCH] Added initial poll
---
.../qubino-flush-2-relay.src/qubino-flush-2-relay.groovy | 3 +++
1 file changed, 3 insertions(+)
diff --git a/devicetypes/qubino/qubino-flush-2-relay.src/qubino-flush-2-relay.groovy b/devicetypes/qubino/qubino-flush-2-relay.src/qubino-flush-2-relay.groovy
index 2dbeb85dd8b..9a1d7e87193 100644
--- a/devicetypes/qubino/qubino-flush-2-relay.src/qubino-flush-2-relay.groovy
+++ b/devicetypes/qubino/qubino-flush-2-relay.src/qubino-flush-2-relay.groovy
@@ -92,6 +92,9 @@ def installed() {
state.currentPreferencesState."$it.key".status = "synced"
}
// Preferences template end
+ response([
+ refresh((1..state.numberOfSwitches).toList())
+ ])
}
def updated() {