mqtt-homeassistant 0.1.4 → 0.1.5
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/version.rb +1 -1
- data/lib/mqtt/home_assistant.rb +10 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96765202ae955e74f283eb348c22fed1c8bd4cd792aa9792ef071cc5f4bf68c3
|
4
|
+
data.tar.gz: bfd420db58ba339dd034c177b5352b9dee84063cd2800f7db21fbe5a125ee8ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb2f2bd2d70e208ad42a9420723088d16c33cb4607104f7b3edcaaf26a0c7a04211bd2ba04d9c31e26df84cdbd71b726ad1b995b2d34afb580648b6ee540d0fd
|
7
|
+
data.tar.gz: c1ee571c04ddeea59975ea544dddd1690607ae58fd4bd7c7e825879b8357bcaf405389cdb9c7154e6ce91a4f2a1562742676d5aba5d36acd21bcbbd74f7f5f17
|
data/lib/mqtt/home_assistant.rb
CHANGED
@@ -97,7 +97,7 @@ module MQTT
|
|
97
97
|
end
|
98
98
|
|
99
99
|
config = base_config(property.device,
|
100
|
-
property.
|
100
|
+
"#{property.node.name} #{property.name}",
|
101
101
|
device_class: device_class,
|
102
102
|
device: device,
|
103
103
|
entity_category: entity_category,
|
@@ -159,7 +159,7 @@ module MQTT
|
|
159
159
|
node = properties.first.last.node
|
160
160
|
|
161
161
|
config = base_config(node.device,
|
162
|
-
name || node.
|
162
|
+
name || node.name,
|
163
163
|
device: device,
|
164
164
|
entity_category: entity_category,
|
165
165
|
icon: icon)
|
@@ -211,7 +211,7 @@ module MQTT
|
|
211
211
|
icon: nil
|
212
212
|
)
|
213
213
|
config = base_config(property.device,
|
214
|
-
name || property.node.
|
214
|
+
name || property.node.name,
|
215
215
|
device: device,
|
216
216
|
device_class: device_class,
|
217
217
|
entity_category: entity_category,
|
@@ -249,7 +249,7 @@ module MQTT
|
|
249
249
|
end
|
250
250
|
|
251
251
|
config = base_config(property.device,
|
252
|
-
name || property.node.
|
252
|
+
name || property.node.name,
|
253
253
|
device: device,
|
254
254
|
device_class: device_class,
|
255
255
|
entity_category: entity_category,
|
@@ -303,7 +303,7 @@ module MQTT
|
|
303
303
|
end
|
304
304
|
|
305
305
|
config = base_config(property.device,
|
306
|
-
property.
|
306
|
+
"#{property.node.name} #{property.name}",
|
307
307
|
device: device,
|
308
308
|
entity_category: entity_category,
|
309
309
|
icon: icon)
|
@@ -351,7 +351,7 @@ module MQTT
|
|
351
351
|
float].include?(property.datatype)
|
352
352
|
|
353
353
|
config = base_config(property.device,
|
354
|
-
property.
|
354
|
+
"#{property.node.name} #{property.name}",
|
355
355
|
device: device,
|
356
356
|
entity_category: entity_category,
|
357
357
|
icon: icon)
|
@@ -380,7 +380,7 @@ module MQTT
|
|
380
380
|
end
|
381
381
|
|
382
382
|
config = base_config(property.device,
|
383
|
-
property.
|
383
|
+
"#{property.node.name} #{property.name}",
|
384
384
|
device: device,
|
385
385
|
entity_category: entity_category,
|
386
386
|
icon: icon)
|
@@ -403,7 +403,7 @@ module MQTT
|
|
403
403
|
raise ArgumentError, "Homie property must be settable" unless property.settable?
|
404
404
|
|
405
405
|
config = base_config(property.device,
|
406
|
-
property.
|
406
|
+
"#{property.node.name} #{property.name}",
|
407
407
|
device: device,
|
408
408
|
entity_category: entity_category,
|
409
409
|
icon: icon)
|
@@ -435,7 +435,7 @@ module MQTT
|
|
435
435
|
end
|
436
436
|
|
437
437
|
config = base_config(property.device,
|
438
|
-
property.
|
438
|
+
"#{property.node.name} #{property.name}",
|
439
439
|
device: device,
|
440
440
|
device_class: device_class,
|
441
441
|
entity_category: entity_category,
|
@@ -463,7 +463,7 @@ module MQTT
|
|
463
463
|
raise ArgumentError, "Homie property must be a boolean" unless property.datatype == :boolean
|
464
464
|
|
465
465
|
config = base_config(property.device,
|
466
|
-
property.
|
466
|
+
"#{property.node.name} #{property.name}",
|
467
467
|
device: device,
|
468
468
|
device_class: device_class,
|
469
469
|
entity_category: entity_category,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mqtt-homeassistant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: homie-mqtt
|