mqtt-homeassistant 1.0.2 → 1.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: 8c6bdb285da5b81f2a875ebcb729198fe1b9828c64edd7a72a15c9f20e7a0afe
4
- data.tar.gz: fc3f741e7883af82c6eab1d039577eca7cbcf18482de77999bae66e321c883d0
3
+ metadata.gz: a7446043d2638784139e06cf7480f392923de8a0173d8298c1b98d9e14a15652
4
+ data.tar.gz: 935f107a4606a3c391e795db71fbd934afc9b76d5fbe2195ff42e63ff4d7249b
5
5
  SHA512:
6
- metadata.gz: fb331db055d240cdbdad621928c49b43c2d23a21cbec7261c55a7a6a4cefdf51aa8596cd8633f7dd4730b67f5ca8a2e1fa0f2877ea5fc45938a81f7bea476d37
7
- data.tar.gz: dee0b9b3160766fb39e586cf9022ff85400c547e49807cc71fe953ef758fdc244a9d9e58630296e1fd6f8dc1fdcf11e630f7fd42bb0e8f8c650819200df10f1e
6
+ metadata.gz: 0cf9bb5295bf6cc5d2ef82aa23f50274d4b3592d976fdfb355b3c7e8741aaafc5993279377dc72661ddb33cc702dde33a507a28d2694ade12f36a6b93d28e588
7
+ data.tar.gz: c108551106aac3003da87b88b0e5fb33090c1919384773a15fb6d11aaa8e9749ee4757848c9475a1613c76c724fb181343722c862ff0788de0ac5d0e69f4c574
@@ -103,7 +103,8 @@ module MQTT
103
103
  VALIDATIONS[platform]&.call(**kwargs)
104
104
 
105
105
  RANGE_ATTRIBUTES[platform]&.each do |attr, prefix_or_suffix|
106
- if (range = kwargs.delete(:"#{attr}_range"))
106
+ range_name = (prefix_or_suffix == :singleton) ? attr : :"#{attr}_range"
107
+ if (range = kwargs.delete(range_name))
107
108
  case prefix_or_suffix
108
109
  when :prefix
109
110
  kwargs[:"min_#{attr}"] = range.begin
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MQTT
4
4
  module HomeAssistant
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.3"
6
6
  end
7
7
  end
@@ -375,7 +375,7 @@ module MQTT
375
375
  RANGE_ATTRIBUTES = {
376
376
  climate: { humidity: :prefix, temp: :prefix }.freeze,
377
377
  cover: { tilt: :suffix }.freeze,
378
- fan: { speed_range: :suffix }.freeze,
378
+ fan: { speed: :suffix }.freeze,
379
379
  humidifier: { humidity: :prefix }.freeze,
380
380
  light: { mireds: :prefix }.freeze,
381
381
  number: { range: :singleton }.freeze,
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mqtt-homeassistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-03 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: json
@@ -58,7 +57,6 @@ dependencies:
58
57
  - - "~>"
59
58
  - !ruby/object:Gem::Version
60
59
  version: '13.0'
61
- description:
62
60
  email: cody@cutrer.com'
63
61
  executables: []
64
62
  extensions: []
@@ -73,7 +71,6 @@ licenses:
73
71
  - MIT
74
72
  metadata:
75
73
  rubygems_mfa_required: 'true'
76
- post_install_message:
77
74
  rdoc_options: []
78
75
  require_paths:
79
76
  - lib
@@ -88,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
85
  - !ruby/object:Gem::Version
89
86
  version: '0'
90
87
  requirements: []
91
- rubygems_version: 3.5.11
92
- signing_key:
88
+ rubygems_version: 3.6.3
93
89
  specification_version: 4
94
90
  summary: Library for publishing device auto-discovery configuration for Home Assistant
95
91
  via MQTT.