Fix function names
This commit is contained in:
parent
cde98cc95a
commit
3258ba8496
|
@ -15,19 +15,19 @@ class CarModeSwitches(MycroftSkill):
|
|||
MycroftSkill.__init__(self)
|
||||
|
||||
@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")
|
||||
emit(url, "switchPlugin", {"plugin": "petMode"})
|
||||
self.speak_dialog('switches.mode.pet')
|
||||
|
||||
@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")
|
||||
emit(url, "switchPlugin", {"plugin": "smartHome"})
|
||||
self.speak_dialog('switches.mode.smart_home')
|
||||
|
||||
@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")
|
||||
emit(url, "switchPlugin", {"plugin": "maps"})
|
||||
self.speak_dialog('switches.mode.maps')
|
||||
|
|
Loading…
Reference in New Issue