balboa_worldwide_app 2.1.6 → 2.1.8

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: 2bc2478e338f4f88713309f02a338b7654acff1966356b63b798d8c66e9b3cbb
4
- data.tar.gz: 0bebdf13f2108bca8d240da6181281ea18a16ee02d9923a8179f621e58cff999
3
+ metadata.gz: 7a8bdb58b8e445cb2de9839b0736204a587b125469534436654c4742b35fd8ac
4
+ data.tar.gz: cd20988f1b7cbe4be798345ac6fdd228a88ab5b2049f4dd808f85796cdeee8a6
5
5
  SHA512:
6
- metadata.gz: 8439e831ba09b6eee619c478a507943428b0a06542fc3a7e796ebf0eef9fdac2f77a3e927ac05bbeb6aed10199ad019dfdfc7b2aba1c1ba24b9366814921f108
7
- data.tar.gz: '056921546926780e53b8129ef69f16db148e0db3278ac4b84dc7ef3546ad08d949578f5b69b70460d12f8e94577f991b144ea8c24f806c7f3ac860008036b9c1'
6
+ metadata.gz: f18439aca093e2aceb8ca9899e1ec27820e39bafeaaae2b959149d61ca18f111251f6e08d8eb06186976944f46e1f5b05f0e0e8283b2b07c2ff255913a68d0a8
7
+ data.tar.gz: b86b284297cac9328b0c2d4e1e1aa8d423e6d9a7a249ce24f9dcc4b516bd27d82f173604d9c2c67dd806aee938c6b2713f60bcc61bcead50b1a66da8c210d31d
data/exe/bwa_mqtt_bridge CHANGED
@@ -378,7 +378,7 @@ class MQTTBridge
378
378
 
379
379
  def update_filter_cycles(prop, value)
380
380
  new_config = @bwa.filter_cycles.dup
381
- new_config.public_send("#{prop}=", value)
381
+ new_config.public_send(:"#{prop}=", value)
382
382
  @bwa.update_filter_cycles(new_config)
383
383
  end
384
384
 
@@ -389,13 +389,14 @@ class MQTTBridge
389
389
  if @bwa.temperature_scale == :celsius
390
390
  @homie["spa"]["current-temperature"].format = 0..42
391
391
  @homie["spa"]["target-temperature"].format = 10..40
392
+ @homie["spa"]["target-temperature"].hass_number(icon: "mdi:thermometer", step: 0.5)
392
393
  else
393
394
  @homie["spa"]["current-temperature"].format = 32..108
394
395
  @homie["spa"]["target-temperature"].format = 50..106
396
+ @homie["spa"]["target-temperature"].hass_number(icon: "mdi:thermometer", step: 1)
395
397
  end
396
398
 
397
399
  @homie["spa"]["current-temperature"].hass_sensor(device_class: :temperature)
398
- @homie["spa"]["target-temperature"].hass_number(icon: "mdi:thermometer")
399
400
  end
400
401
  end
401
402
 
data/lib/bwa/message.rb CHANGED
@@ -67,8 +67,8 @@ module BWA
67
67
  klass = @messages.find { |k| message_type == k::MESSAGE_TYPE }
68
68
 
69
69
  if klass
70
- valid_length = if klass::MESSAGE_LENGTH.respond_to?(:include?)
71
- klass::MESSAGE_LENGTH.include?(length - 5)
70
+ valid_length = if klass::MESSAGE_LENGTH.respond_to?(:cover?)
71
+ klass::MESSAGE_LENGTH.cover?(length - 5)
72
72
  else
73
73
  length - 5 == klass::MESSAGE_LENGTH
74
74
  end
@@ -29,7 +29,7 @@ module BWA
29
29
 
30
30
  MESSAGE_TYPE = "\xaf\x13".b
31
31
  # additional features have been added in later versions
32
- MESSAGE_LENGTH = (24..32).freeze
32
+ MESSAGE_LENGTH = (23..32).freeze
33
33
 
34
34
  NOTIFICATIONS = {
35
35
  0x00 => nil,
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.1.6"
4
+ VERSION = "2.1.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balboa_worldwide_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport
@@ -142,7 +142,7 @@ dependencies:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0.6'
145
- description:
145
+ description:
146
146
  email: cody@cutrer.com'
147
147
  executables:
148
148
  - bwa_client
@@ -184,7 +184,7 @@ licenses:
184
184
  - MIT
185
185
  metadata:
186
186
  rubygems_mfa_required: 'true'
187
- post_install_message:
187
+ post_install_message:
188
188
  rdoc_options: []
189
189
  require_paths:
190
190
  - lib
@@ -199,8 +199,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubygems_version: 3.5.13
203
- signing_key:
202
+ rubygems_version: 3.5.11
203
+ signing_key:
204
204
  specification_version: 4
205
205
  summary: Library for communication with Balboa Water Group's WiFi module or RS-485
206
206
  test_files: []