mqtt-homie-homeassistant 1.0.3 → 1.0.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbfb1ae66e4ee1518dd6d1f79ec087aa3dae9fbd5d9988b3d25f2e21da7063ae
|
4
|
+
data.tar.gz: aeca3ab139eecf3667c8f3c7e44376c1419aecaff846c4ed67de8380066807a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38f9d31cc9a8f483bdd34a94ef879527f2b91cc2f0c15e0909547d23ce6c0eac8524646a3ad015c0b16f46590e6ae13fb6a3360b89513a90582915832225494c
|
7
|
+
data.tar.gz: a1d82a463c18bf3b42dedc95d861a383ce2fd3e01ba247a5c62a3658eaaa1d1d7e9b68acd3819c334da952d33dff00e1ac67ae92bb6d998edc0ee3278bcc3a26
|
@@ -32,6 +32,11 @@ module MQTT
|
|
32
32
|
**kwargs)
|
33
33
|
end
|
34
34
|
|
35
|
+
def hass_button(**kwargs)
|
36
|
+
hass_property(kwargs)
|
37
|
+
publish_hass_component(platform: :button, **kwargs)
|
38
|
+
end
|
39
|
+
|
35
40
|
def hass_fan(**kwargs)
|
36
41
|
raise ArgumentError, "Property must be a boolean" unless datatype == :boolean
|
37
42
|
raise ArgumentError, "Property must be settable" unless settable?
|
@@ -93,6 +98,7 @@ module MQTT
|
|
93
98
|
kwargs[:device_class] = :enum
|
94
99
|
kwargs[:options] = range
|
95
100
|
end
|
101
|
+
kwargs[:unit_of_measurement] = unit if unit
|
96
102
|
|
97
103
|
publish_hass_component(platform: :sensor,
|
98
104
|
state_topic: topic,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mqtt-homie-homeassistant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.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: 2025-01-
|
11
|
+
date: 2025-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: homie-mqtt
|