homie-mqtt 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mqtt/homie/property.rb +2 -2
- data/lib/mqtt/homie/version.rb +1 -1
- 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: 520ad8e14f8ce8df9fb824ef2cc3b65e1bef81e70d2b530bc5442732e627a913
|
4
|
+
data.tar.gz: 801041e538a20ce166eb0528d33cd8c77bb5567e0a7ecea57dba59a63a85bef5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efa3b6a779f9814ba7d9bade3bde3b3c65325630ec3e81cea5e1e023c338e105367d1f91b039bf9a43230a43bf6260352dfdf21833b6a3fa08c15e6a980e144b
|
7
|
+
data.tar.gz: '09c32c899c26b9ec86ed5022daff775a48aafaa4aa65e95e0a30f306e381dd3d6262b0b398c923d9a5c9b0a778dd42211b1e680cb004be4196160bdbf57f927e'
|
data/lib/mqtt/homie/property.rb
CHANGED
@@ -127,7 +127,7 @@ module MQTT
|
|
127
127
|
mqtt.publish("#{topic}/$settable", "true", retain: true, qos: 1) if settable?
|
128
128
|
mqtt.publish("#{topic}/$retained", "false", retain: true, qos: 1) unless retained?
|
129
129
|
mqtt.publish("#{topic}/$unit", unit, retain: true, qos: 1) if unit
|
130
|
-
mqtt.publish(topic, value.to_s, retain: retained?, qos: 1)
|
130
|
+
mqtt.publish(topic, value.to_s, retain: retained?, qos: 1) unless value.nil?
|
131
131
|
subscribe
|
132
132
|
end
|
133
133
|
|
@@ -149,7 +149,7 @@ module MQTT
|
|
149
149
|
mqtt.publish("#{topic}/$retained", retain: true, qos: 0) unless retained?
|
150
150
|
mqtt.publish("#{topic}/$unit", retain: true, qos: 0) if unit
|
151
151
|
mqtt.unsubscribe("#{topic}/set") if settable?
|
152
|
-
mqtt.publish(topic, retain: retained?, qos: 0) if value && retained?
|
152
|
+
mqtt.publish(topic, retain: retained?, qos: 0) if !value.nil? && retained?
|
153
153
|
end
|
154
154
|
end
|
155
155
|
end
|
data/lib/mqtt/homie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homie-mqtt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mqtt-ccutrer
|