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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8553ce88b82dd93b0b7765705c02bd395d60e73e8fba7d61c4eaac617f7b78c
4
- data.tar.gz: 1a31fb278828c5e2d487baba5836b171ffbc24cb8617c707f3da6afe9acbe526
3
+ metadata.gz: e794d663e6db42e9255f01cbdbae515562726ac8d6a27aebaf7210722a5811f2
4
+ data.tar.gz: 9ebdbe785492a7b9aabbc72a4b3fbf2f0a6396d9697d0422f292f99c71287ee0
5
5
  SHA512:
6
- metadata.gz: c5bcf4d62caa96ad2160baaef8c05811f0ab423113547e5bab7455553f6e60db45da3ad12312e882eb1627e4e09529acc71b3e9d04e8a2063df17c4717d71a16
7
- data.tar.gz: ccc18e9cabf4e3d4f2f690c15f6bb58690819ff226f7ddc55422779bc33e2b4d08d4434ec33df8dbae3a146ca633bf55118e2569bf99a8a6cdce64801339120d
6
+ metadata.gz: 477e6446f83833e511d4219d40b31e2ed52110500a0b45ef31a7184e61d30e645056e4dd55b019536f63c89a23d47e64433fef736a0fc5228653598a6f62f50d
7
+ data.tar.gz: 601498e0008cd0b85c73cdecda6d96cf3250253931d912634bbfdb1139a7db8344f1a011ffa4a9fcfdd375cf529c3348731af315f0aa1b24118eb47b51b0fe13
@@ -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
@@ -5,5 +5,5 @@
5
5
  #
6
6
  module OpenHAB
7
7
  # @return [String] Version of OpenHAB helper libraries
8
- VERSION = '4.13.3'
8
+ VERSION = '4.13.4'
9
9
  end
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.3
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-08 00:00:00.000000000 Z
11
+ date: 2021-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler