openhab-scripting 4.13.3 → 4.13.4
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/actions.rb +4 -4
- 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: e794d663e6db42e9255f01cbdbae515562726ac8d6a27aebaf7210722a5811f2
|
4
|
+
data.tar.gz: 9ebdbe785492a7b9aabbc72a4b3fbf2f0a6396d9697d0422f292f99c71287ee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 477e6446f83833e511d4219d40b31e2ed52110500a0b45ef31a7184e61d30e645056e4dd55b019536f63c89a23d47e64433fef736a0fc5228653598a6f62f50d
|
7
|
+
data.tar.gz: 601498e0008cd0b85c73cdecda6d96cf3250253931d912634bbfdb1139a7db8344f1a011ffa4a9fcfdd375cf529c3348731af315f0aa1b24118eb47b51b0fe13
|
data/lib/openhab/dsl/actions.rb
CHANGED
@@ -65,9 +65,9 @@ module OpenHAB
|
|
65
65
|
end
|
66
66
|
|
67
67
|
if email
|
68
|
-
NotificationAction.sendNotification email, msg
|
68
|
+
NotificationAction.sendNotification email.to_s, msg.to_s
|
69
69
|
else
|
70
|
-
NotificationAction.sendBroadcastNotification msg
|
70
|
+
NotificationAction.sendBroadcastNotification msg.to_s
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -83,7 +83,7 @@ module OpenHAB
|
|
83
83
|
#
|
84
84
|
def say(text, voice: nil, sink: nil, volume: nil)
|
85
85
|
volume = Types::PercentType.new(volume) unless volume.is_a?(Types::PercentType) || volume.nil?
|
86
|
-
Voice.say text, voice, sink, volume
|
86
|
+
Voice.say text.to_s, voice&.to_s, sink&.to_s, volume
|
87
87
|
end
|
88
88
|
|
89
89
|
#
|
@@ -97,7 +97,7 @@ module OpenHAB
|
|
97
97
|
#
|
98
98
|
def play_sound(filename, sink: nil, volume: nil)
|
99
99
|
volume = Types::PercentType.new(volume) unless volume.is_a?(Types::PercentType) || volume.nil?
|
100
|
-
Audio.playSound sink, filename, volume
|
100
|
+
Audio.playSound sink&.to_s, filename.to_s, volume
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|
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.13.
|
4
|
+
version: 4.13.4
|
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: 2021-11-
|
11
|
+
date: 2021-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|