mqtt-homeassistant 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mqtt/home_assistant/client.rb +4 -2
- data/lib/mqtt/home_assistant/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b656374840471117429528590444bf765e632b07d828eea568cd57d393e90038
|
|
4
|
+
data.tar.gz: 4f7fcb74b3188019d00d64a3f7e5191c423fe1ebd714fb578f8d8274b10ab4d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82fccc23499c5323abcbb39d211dd537b663daaa40a5a74b7e246bce3bde20458f04df62f97ac9bc6c73a346641b58d942dc3aa97f8c068aa8a09ef8adf26906
|
|
7
|
+
data.tar.gz: 9205edc7e5ef63fc65c91b02e20f89710de150e39d0699bbff0ee208209fcc2de472c09896e9bdef25d6025c80ae562079c3858b93ff8701a45aedcef4861c51
|
|
@@ -12,6 +12,8 @@ module MQTT
|
|
|
12
12
|
module HomeAssistant
|
|
13
13
|
module Client
|
|
14
14
|
KNOWN_ATTRIBUTES.each_key do |platform|
|
|
15
|
+
next if platform == :device
|
|
16
|
+
|
|
15
17
|
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
|
16
18
|
def publish_hass_#{platform}(object_id, platform: #{platform.inspect}, **kwargs)
|
|
17
19
|
raise ArgumentError, "platform must be #{platform.inspect}" unless platform == #{platform.inspect}
|
|
@@ -232,12 +234,12 @@ module MQTT
|
|
|
232
234
|
end
|
|
233
235
|
end
|
|
234
236
|
|
|
235
|
-
hass_abbreviate(abbreviations, config)
|
|
237
|
+
kwargs[special_type] = hass_abbreviate(abbreviations, config)
|
|
236
238
|
end
|
|
237
239
|
end
|
|
238
240
|
|
|
239
241
|
def hass_abbreviate(abbreviations, kwargs)
|
|
240
|
-
kwargs.transform_keys
|
|
242
|
+
kwargs.transform_keys { |key| abbreviations[key.to_s] || key }
|
|
241
243
|
end
|
|
242
244
|
end
|
|
243
245
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mqtt-homeassistant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cody Cutrer
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-26 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: json
|
|
@@ -43,6 +44,7 @@ dependencies:
|
|
|
43
44
|
- - ">="
|
|
44
45
|
- !ruby/object:Gem::Version
|
|
45
46
|
version: 1.0.3
|
|
47
|
+
description:
|
|
46
48
|
email: cody@cutrer.com'
|
|
47
49
|
executables: []
|
|
48
50
|
extensions: []
|
|
@@ -139,6 +141,7 @@ licenses:
|
|
|
139
141
|
- MIT
|
|
140
142
|
metadata:
|
|
141
143
|
rubygems_mfa_required: 'true'
|
|
144
|
+
post_install_message:
|
|
142
145
|
rdoc_options: []
|
|
143
146
|
require_paths:
|
|
144
147
|
- lib
|
|
@@ -153,7 +156,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
153
156
|
- !ruby/object:Gem::Version
|
|
154
157
|
version: '0'
|
|
155
158
|
requirements: []
|
|
156
|
-
rubygems_version: 3.
|
|
159
|
+
rubygems_version: 3.4.19
|
|
160
|
+
signing_key:
|
|
157
161
|
specification_version: 4
|
|
158
162
|
summary: Library for publishing device auto-discovery configuration for Home Assistant
|
|
159
163
|
via MQTT.
|