From 23444c65ee3a467e1face4e01c8140a08335ef60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Fri, 15 Sep 2017 16:11:03 +0200 Subject: [PATCH] Replace Intent invocation with specific messages ==== Protocol Notes ==== New messages on the message bus: - mycroft.volume.increase - mycroft.volume.decrease --- mycroft/client/enclosure/__init__.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mycroft/client/enclosure/__init__.py b/mycroft/client/enclosure/__init__.py index 6e1a7fa307..92e2eba099 100644 --- a/mycroft/client/enclosure/__init__.py +++ b/mycroft/client/enclosure/__init__.py @@ -96,14 +96,12 @@ class EnclosureReader(Thread): self.ws.emit(Message("mycroft.stop")) if "volume.up" in data: - self.ws.emit( - Message("VolumeSkill:IncreaseVolumeIntent", - {'play_sound': True})) + self.ws.emit(Message("mycroft.volume.increase", + {'play_sound': True})) if "volume.down" in data: - self.ws.emit( - Message("VolumeSkill:DecreaseVolumeIntent", - {'play_sound': True})) + self.ws.emit(Message("mycroft.volume.decrease", + {'play_sound': True})) if "system.test.begin" in data: self.ws.emit(Message('recognizer_loop:sleep'))