alexa_hue 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alexa_hue.rb +1 -1
- data/lib/alexa_hue/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a8279f7243276431c830a00b52f689fc6f2a335
|
4
|
+
data.tar.gz: 904de5cd7fb0ca4c6770c614e5c36475a9cb8f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2afeb307b65861a95bfa926393d63bcff6cbcad432240b22c2c02279108e69f242c0d5a2a9dd420a58364c92e60865fa5a506f66051b35409e2122f28a9fb4a3
|
7
|
+
data.tar.gz: 041321635e647fcc8b66b12cdc75880d7ac20e933d0ba3ed51c8a6358220ce9d2e268444c3bdc47df0048cdb106939f6b92df5d5aeea45e0886327cc5ed5600a
|
data/lib/alexa_hue.rb
CHANGED
@@ -31,7 +31,7 @@ module Hue
|
|
31
31
|
switch.voice @echo_request
|
32
32
|
end
|
33
33
|
|
34
|
-
if (@echo_request.slots.lights.nil? && @echo_request.slots.scene.nil? && @echo_request.slots.savescene.nil?) || @echo_request.slots.lights
|
34
|
+
if (@echo_request.slots.lights.nil? && @echo_request.slots.scene.nil? && @echo_request.slots.savescene.nil?) || (@echo_request.slots.lights && @echo_request.slots.lights.scan(/light|lights/).empty?)
|
35
35
|
halt AlexaObjects::Response.new(end_session: false, spoken_response: "Please specify which light or lights you'd like to adjust. I'm ready to control the lights.").to_json
|
36
36
|
end
|
37
37
|
|
data/lib/alexa_hue/version.rb
CHANGED