Fix function names

This commit is contained in:
Ceda EI 2021-01-06 12:32:17 +05:30
parent cde98cc95a
commit 3258ba8496
1 changed files with 3 additions and 3 deletions

View File

@ -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')