openhab-scripting 4.27.0 → 4.27.1
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 +4 -4
- data/lib/openhab/dsl/items/ensure.rb +5 -1
- data/lib/openhab/dsl/items/generic_item.rb +1 -1
- data/lib/openhab/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: 7281829b6759d5f975fc84086826ed6a2712b841a41c47b1305eb37df54aa264
|
|
4
|
+
data.tar.gz: c2002b1ba4a7f207c89355775fef67b30d28fa7c0dc8b0131785b8c5527988a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f50fa017b7b74d18cf4419b9a28b25134c2d52b5e5871864b97dc1698b467e211dfc85a91a24f6b391584e2ca130c5596da7f894681fd0c2f85b3a446c983d3
|
|
7
|
+
data.tar.gz: 658dd4e19e86c5629998023b415269c2c11891796020872e590f7cb85e69491046194db90ab2914cfbc38cbed77b0dec273040d107167239a7efa03d97de0ef1
|
|
@@ -53,7 +53,11 @@ module OpenHAB
|
|
|
53
53
|
# sending the command
|
|
54
54
|
def command(command)
|
|
55
55
|
return super unless Thread.current[:ensure_states]
|
|
56
|
-
|
|
56
|
+
|
|
57
|
+
logger.trace do
|
|
58
|
+
"#{name} ensure #{command}, format_type_pre: #{format_type_pre(command)}, current state: #{state}"
|
|
59
|
+
end
|
|
60
|
+
return if state == format_type_pre(command)
|
|
57
61
|
|
|
58
62
|
super
|
|
59
63
|
end
|
|
@@ -135,7 +135,7 @@ module OpenHAB
|
|
|
135
135
|
# @return [Array<Group>] All groups that this item is part of
|
|
136
136
|
#
|
|
137
137
|
def groups
|
|
138
|
-
group_names.map { |name| Groups.groups[name] }
|
|
138
|
+
group_names.map { |name| Groups.groups[name] }.compact
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
# Return the item's thing if this item is linked with a thing. If an item is linked to more than one thing,
|
data/lib/openhab/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openhab-scripting
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.27.
|
|
4
|
+
version: 4.27.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian O'Connell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-01-
|
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|