Issues-54 - Displaying pairing code

- Ensuring pairing code is displayed after mycroft speaks
pull/78/merge
Jonathan D'Orleans 2016-05-25 19:00:06 -04:00 committed by Jonathan D'Orleans
parent 3b9fefe119
commit df8f9a7344
1 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ class PairingSkill(MycroftSkill):
def initialize(self):
intent = IntentBuilder("PairingIntent").require(
"DevicePairingPhrase").build()
"DevicePairingPhrase").build()
self.load_data_files(dirname(__file__))
self.register_intent(intent, handler=self.handle_pairing_request)
@ -38,10 +38,10 @@ class PairingSkill(MycroftSkill):
pairing_client = DevicePairingClient()
pairing_code = pairing_client.pairing_code
threading.Thread(target=pairing_client.run).start()
self.enclosure.mouth_text("Pairing code is: " + pairing_code)
self.speak_dialog(
"pairing.instructions",
data={"pairing_code": ', ,'.join(pairing_code)})
"pairing.instructions",
data={"pairing_code": ', ,'.join(pairing_code)})
self.enclosure.mouth_text("Pairing code is: " + pairing_code)
def stop(self):
pass