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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0291c14ad60589f11fdeffee50a92741cad4b43bf0f8ea84f7fe08f23d7e0182'
4
- data.tar.gz: b9ece98fd0e7b52130e67e633bbd06cc8cb9638fac0a4b9d19b213312c20a351
3
+ metadata.gz: 3fca5333c7db064572f3179a76f34ae4be4915fe54e6d00d7e1ba3ac018b2faa
4
+ data.tar.gz: 4e8bb6e201feb560bdff1424802d38ce38993f91bb9adb741f629590a7e5fa87
5
5
  SHA512:
6
- metadata.gz: 2f8342fe70025de40baa56a8a9b030cbec20a891ec7a4aaadb3ea3107b8d7b40441b840ad85333db043ccee752e4994f4dc8bdc2c4874e8ae31e1a05ca2cda5e
7
- data.tar.gz: '057971154699cd8a293928119368c5a54862720315cc99e2c5f621f515caa6da6c58ff9627a3e4f22b33ca06cb28a8b8af85799dc72e8087762ac85de04854f4'
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: allow_toggle,
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: allow_toggle,
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BWA
4
- VERSION = "2.0.2"
4
+ VERSION = "2.0.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balboa_worldwide_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer