openhab-scripting 2.26.0 → 2.26.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e85c64c68c9d566c3c4cf1070ea994fae3e3b57dda312c0854da87bff393ae1c
|
4
|
+
data.tar.gz: 9934d415111e5a680f1a8a7630ef1b08e0ed537cc537631100ee3dd73b1ce70d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfe0d9a8e3ec9a4e4ed2121958d508f3ce0d552db041dbfa8099168f4e2963f5c823b68931a04a796d7311f138fcd64fd8733ad81ef859b7d8b751526e52cc1c
|
7
|
+
data.tar.gz: 440dd0f36d20abf8a27cab1b87f5f73c90c7b852ed7496fdfb2abd3f6d7e76add9fbf6f6c5ecccfad125a6e56182ba85839d2d14e218037d9ad073648226afe4
|
@@ -103,8 +103,7 @@ module OpenHAB
|
|
103
103
|
# @return [OpenHAB::DSL::MonkeyPatch::Items::MetadataItem], or nil if the namespace doesn't exist
|
104
104
|
#
|
105
105
|
def [](namespace)
|
106
|
-
logger.trace("
|
107
|
-
logger.trace("Namespace (#{NamespaceAccessor.registry.get(MetadataKey.new(namespace, @item_name))})")
|
106
|
+
logger.trace("Getting metadata for item: #{@item_name}, namespace '#{namespace}'")
|
108
107
|
metadata = NamespaceAccessor.registry.get(MetadataKey.new(namespace, @item_name))
|
109
108
|
MetadataItem.new(metadata: metadata) if metadata
|
110
109
|
end
|
@@ -79,7 +79,7 @@ module OpenHAB
|
|
79
79
|
procs, items = conditions.flatten.partition { |condition| condition.is_a? Proc }
|
80
80
|
logger.trace("Procs: #{procs} Items: #{items}")
|
81
81
|
|
82
|
-
items.each { |item| logger.trace
|
82
|
+
items.each { |item| logger.trace { "#{item} truthy? #{item.truthy?}" } }
|
83
83
|
|
84
84
|
process_check(check_type: check_type, event: event, items: items, procs: procs)
|
85
85
|
end
|
@@ -144,8 +144,10 @@ module OpenHAB
|
|
144
144
|
|
145
145
|
OPERATIONS.each do |operation, method|
|
146
146
|
define_method(operation) do |other|
|
147
|
-
logger.trace
|
148
|
-
|
147
|
+
logger.trace do
|
148
|
+
"Executing math operation '#{operation}' on quantity #{inspect} "\
|
149
|
+
"with other type #{other.class} and value #{other.inspect}"
|
150
|
+
end
|
149
151
|
|
150
152
|
a, b = to_qt(coerce(other).reverse)
|
151
153
|
logger.trace("Coerced a='#{a}' with b='#{b}'")
|
data/lib/openhab/version.rb
CHANGED