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 +4 -4
- data/lib/mqtt/home_assistant/client.rb +2 -1
- data/lib/mqtt/home_assistant/version.rb +1 -1
- data/lib/mqtt/home_assistant.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7446043d2638784139e06cf7480f392923de8a0173d8298c1b98d9e14a15652
|
4
|
+
data.tar.gz: 935f107a4606a3c391e795db71fbd934afc9b76d5fbe2195ff42e63ff4d7249b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/mqtt/home_assistant.rb
CHANGED
@@ -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: {
|
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.
|
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-
|
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.
|
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.
|