openhab-scripting 4.17.0 → 4.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openhab/dsl/items/switch_item.rb +8 -0
- data/lib/openhab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775d56e757a494c9b854b963f2c15393c2521597cd83e5d36452a41033508339
|
4
|
+
data.tar.gz: 9dfd101285ad28b310156016e524a370352b192147f3fbf87d130135b5a48b9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 773d6bc398e5b24a9aecfb265c6025c75c4863ddf80932e875e9cb60eea4e6fdbf8036803d17c25dfd429127fc5164f1264b4bc48f7fce2cee1cd3fde837372a
|
7
|
+
data.tar.gz: 2e19d2dd05b40da151bd85a253e022209c93819acd20872bd1a30f02d9ad96cdb931c81499f7c222c2c487f962cb56f9db851dee6e3c038a671bac4d44f5481d
|
@@ -20,6 +20,14 @@ module OpenHAB
|
|
20
20
|
on?
|
21
21
|
end
|
22
22
|
|
23
|
+
# Convert boolean commands to ON/OFF
|
24
|
+
# @!visibility private
|
25
|
+
def format_type(command)
|
26
|
+
return Types::OnOffType.from(command) if [true, false].include?(command)
|
27
|
+
|
28
|
+
super
|
29
|
+
end
|
30
|
+
|
23
31
|
#
|
24
32
|
# Send a command to invert the state of the switch
|
25
33
|
#
|
data/lib/openhab/version.rb
CHANGED