balboa_worldwide_app 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/bwa_mqtt_bridge +7 -2
- data/lib/bwa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fca5333c7db064572f3179a76f34ae4be4915fe54e6d00d7e1ba3ac018b2faa
|
4
|
+
data.tar.gz: 4e8bb6e201feb560bdff1424802d38ce38993f91bb9adb741f629590a7e5fa87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 402069abd87db291867298dc70fa9180944972965d3456f4ea99bc44c55a56472fc2592f51edcd3a67c55e9e22b9bfdb184b7f9de6105834128d40c457ea4647
|
7
|
+
data.tar.gz: 74e2a3ac63a6e90ceb82dcc97139a30572e62c980420c66b7dac3c156668ddcec999be06b8414958a67fde084af4c6ea9d6312f261d3c36a4569378d7c779f49
|
data/exe/bwa_mqtt_bridge
CHANGED
@@ -137,6 +137,11 @@ class MQTTBridge
|
|
137
137
|
allow_toggle = lambda do |value|
|
138
138
|
next value if value == "toggle"
|
139
139
|
end
|
140
|
+
allow_toggle_or_speed = lambda do |value|
|
141
|
+
next value if value == "toggle"
|
142
|
+
|
143
|
+
value.to_i if value.match?(/^\d+$/)
|
144
|
+
end
|
140
145
|
|
141
146
|
@homie.node("spa", "Hot Tub", @bwa.model) do |spa|
|
142
147
|
spa.property("hold",
|
@@ -216,7 +221,7 @@ class MQTTBridge
|
|
216
221
|
spa.property("blower",
|
217
222
|
"Blower",
|
218
223
|
*args,
|
219
|
-
non_standard_value_check:
|
224
|
+
non_standard_value_check: allow_toggle_or_speed,
|
220
225
|
**kwargs) do |value|
|
221
226
|
next @bwa.toggle_blower if value == "toggle"
|
222
227
|
|
@@ -261,7 +266,7 @@ class MQTTBridge
|
|
261
266
|
spa.property("pump#{i + 1}",
|
262
267
|
name,
|
263
268
|
*args,
|
264
|
-
non_standard_value_check:
|
269
|
+
non_standard_value_check: allow_toggle_or_speed,
|
265
270
|
**kwargs) do |value|
|
266
271
|
next @bwa.toggle_pump(i) if value == "toggle"
|
267
272
|
|
data/lib/bwa/version.rb
CHANGED