From 3258ba8496b161b2ce9d28605b15dc674a06c2c5 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Wed, 6 Jan 2021 12:32:17 +0530 Subject: [PATCH] Fix function names --- car-mode-switches-skill/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/car-mode-switches-skill/__init__.py b/car-mode-switches-skill/__init__.py index 49b56af..b235d1f 100644 --- a/car-mode-switches-skill/__init__.py +++ b/car-mode-switches-skill/__init__.py @@ -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')