Issues-54 - Displaying pairing code
- Ensuring pairing code is displayed after mycroft speakspull/78/merge
parent
3b9fefe119
commit
df8f9a7344
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue