Fix function names
This commit is contained in:
parent
cde98cc95a
commit
3258ba8496
|
@ -15,19 +15,19 @@ class CarModeSwitches(MycroftSkill):
|
||||||
MycroftSkill.__init__(self)
|
MycroftSkill.__init__(self)
|
||||||
|
|
||||||
@intent_file_handler('switches.mode.pet.intent')
|
@intent_file_handler('switches.mode.pet.intent')
|
||||||
def handle_switches_mode_car(self, message):
|
def pet_mode(self, message):
|
||||||
url = self.settings.get("OSD_API", "http://localhost:5050/send")
|
url = self.settings.get("OSD_API", "http://localhost:5050/send")
|
||||||
emit(url, "switchPlugin", {"plugin": "petMode"})
|
emit(url, "switchPlugin", {"plugin": "petMode"})
|
||||||
self.speak_dialog('switches.mode.pet')
|
self.speak_dialog('switches.mode.pet')
|
||||||
|
|
||||||
@intent_file_handler('switches.mode.smart_home.intent')
|
@intent_file_handler('switches.mode.smart_home.intent')
|
||||||
def handle_switches_mode_car(self, message):
|
def smart_home(self, message):
|
||||||
url = self.settings.get("OSD_API", "http://localhost:5050/send")
|
url = self.settings.get("OSD_API", "http://localhost:5050/send")
|
||||||
emit(url, "switchPlugin", {"plugin": "smartHome"})
|
emit(url, "switchPlugin", {"plugin": "smartHome"})
|
||||||
self.speak_dialog('switches.mode.smart_home')
|
self.speak_dialog('switches.mode.smart_home')
|
||||||
|
|
||||||
@intent_file_handler('switches.mode.maps.intent')
|
@intent_file_handler('switches.mode.maps.intent')
|
||||||
def handle_switches_mode_car(self, message):
|
def maps(self, message):
|
||||||
url = self.settings.get("OSD_API", "http://localhost:5050/send")
|
url = self.settings.get("OSD_API", "http://localhost:5050/send")
|
||||||
emit(url, "switchPlugin", {"plugin": "maps"})
|
emit(url, "switchPlugin", {"plugin": "maps"})
|
||||||
self.speak_dialog('switches.mode.maps')
|
self.speak_dialog('switches.mode.maps')
|
||||||
|
|
Loading…
Reference in New Issue