alexa_hue 1.1.8 → 1.1.9
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 -7
- data/lib/alexa_hue/hue/voice_parser.rb +1 -0
- 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: 8030fd3599afd03b7a36dc1d2332543ac093f1d0
|
4
|
+
data.tar.gz: 6edabcd9960392315447a371a5a1f1a14dacf7a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fddc1858c8bb644fe63785d55764b0ce11839e31dafdc54e5f1a08c1a43132e957cb5ea7f24c207a20ad59bc6403fd14e39fee8aa02ade79ca6813ab72e7130a
|
7
|
+
data.tar.gz: de9d792688ddc0fd4bcaa2a0d9bcb4906c14019f8420c21344c3fc96e3ee14631ee3da987e9c88c2bca9d8e5d205f19f31c05a78ffa1adb3dd043966b605ef2b
|
data/lib/alexa_hue.rb
CHANGED
@@ -21,13 +21,7 @@ module Hue
|
|
21
21
|
|
22
22
|
helpers do
|
23
23
|
def switch
|
24
|
-
|
25
|
-
@switch ||= Hue::VoiceParser.new
|
26
|
-
rescue RuntimeError
|
27
|
-
halt AlexaObjects::Response.new(spoken_response: "Hello. Before using Hue lighting, you'll need to give me access to your Hue bridge. Please press the link button on your bridge and launch the skill again within ten seconds.").to_json
|
28
|
-
end
|
29
|
-
|
30
|
-
@switch
|
24
|
+
Hue::VoiceParser.instance
|
31
25
|
end
|
32
26
|
|
33
27
|
def control_lights
|
data/lib/alexa_hue/version.rb
CHANGED