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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d0d4267529911dcd46d67137facee40859218e31c1de6f7c057aaa536f302c2
4
- data.tar.gz: 8f7ed7810a6ae5a4c2b03b3ca3e50954c654b29307c9c19bf31bd36671319293
3
+ metadata.gz: 96765202ae955e74f283eb348c22fed1c8bd4cd792aa9792ef071cc5f4bf68c3
4
+ data.tar.gz: bfd420db58ba339dd034c177b5352b9dee84063cd2800f7db21fbe5a125ee8ea
5
5
  SHA512:
6
- metadata.gz: 7ea2c835d1171876cf826a71e05e4b5cad925e1107c259d184f93b8fd1848870168c0cf9e84589e575c9db20ef185869e1c11b6a48e69459ba29d4c3576fa7a7
7
- data.tar.gz: 383b55527730a79b6fc966061246df42d5e0d36daf8c604937dbd90f4e05e55c87101dfdad58003e20c21ea9212de0a670365fbd38b9cd49cb2f0c55483434e0
6
+ metadata.gz: bb2f2bd2d70e208ad42a9420723088d16c33cb4607104f7b3edcaaf26a0c7a04211bd2ba04d9c31e26df84cdbd71b726ad1b995b2d34afb580648b6ee540d0fd
7
+ data.tar.gz: c1ee571c04ddeea59975ea544dddd1690607ae58fd4bd7c7e825879b8357bcaf405389cdb9c7154e6ce91a4f2a1562742676d5aba5d36acd21bcbbd74f7f5f17
@@ -2,6 +2,6 @@
2
2
 
3
3
  module MQTT
4
4
  module HomeAssistant
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
@@ -97,7 +97,7 @@ module MQTT
97
97
  end
98
98
 
99
99
  config = base_config(property.device,
100
- property.full_name,
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.full_name,
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.full_name,
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.full_name,
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.full_name,
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.full_name,
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.full_name,
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.full_name,
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.full_name,
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.full_name,
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
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: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2023-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: homie-mqtt