openhab-scripting 2.27.0 → 2.27.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: f73567aa2e4ca6070bbcb6963c46babc966e069f62d60f4def67fbca8aa0b70e
|
4
|
+
data.tar.gz: d01862005948c69fb130ba93a14732f6fa565528b40d13ce13252c6da7523359
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbdae9215b3347eabc65ea92eb70ac44834b374233ce7f31b15bfa8f99dcc05c9b85d2c1b7fad3c29d63be62100966648bac9e4255ab614edf40a2dd231b24a8
|
7
|
+
data.tar.gz: 5d8b30987d208674337ffddd43caaeee1c72596ae82e9a3792b74adbb0d7c82879040333173230c6016fb0552be191de877ec664566cbd61f9b14fc150ed4d9e
|
@@ -18,8 +18,10 @@ module OpenHAB
|
|
18
18
|
|
19
19
|
def_item_delegator :@player_item
|
20
20
|
|
21
|
-
item_type Java::OrgOpenhabCoreLibraryItems::PlayerItem, play
|
22
|
-
|
21
|
+
item_type Java::OrgOpenhabCoreLibraryItems::PlayerItem, :play? => :playing?,
|
22
|
+
:pause? => :paused?,
|
23
|
+
:rewind? => :rewinding?,
|
24
|
+
:fastforward? => :fastforwarding?
|
23
25
|
|
24
26
|
# rubocop: disable Style/Alias
|
25
27
|
# Disabled because 'alias' does not work with the dynamically defined methods
|
@@ -59,7 +59,8 @@ module OpenHAB
|
|
59
59
|
#
|
60
60
|
def should_run?(event)
|
61
61
|
logger.trace("Checking guards #{self}")
|
62
|
-
check(@only_if, check_type
|
62
|
+
check(@only_if, :check_type => :only_if,
|
63
|
+
:event => event) && check(@not_if, :check_type => :not_if, :event => event)
|
63
64
|
end
|
64
65
|
|
65
66
|
private
|
@@ -62,10 +62,10 @@ module OpenHAB
|
|
62
62
|
#
|
63
63
|
Delay = Struct.new(:duration)
|
64
64
|
|
65
|
-
prop_array :run, array_name
|
66
|
-
prop_array :triggered, array_name
|
67
|
-
prop_array :delay, array_name
|
68
|
-
prop_array :otherwise, array_name
|
65
|
+
prop_array :run, :array_name => :run_queue, :wrapper => Run
|
66
|
+
prop_array :triggered, :array_name => :run_queue, :wrapper => Trigger
|
67
|
+
prop_array :delay, :array_name => :run_queue, :wrapper => Delay
|
68
|
+
prop_array :otherwise, :array_name => :run_queue, :wrapper => Otherwise
|
69
69
|
|
70
70
|
prop :name
|
71
71
|
prop :description
|
data/lib/openhab/version.rb
CHANGED