From 201d5f5a49708907de5a016a106774866352718b Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Tue, 9 Mar 2021 20:20:52 +0100 Subject: [PATCH] Add plugin name to registration on bus --- controlpi-plugins/statemachine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controlpi-plugins/statemachine.py b/controlpi-plugins/statemachine.py index f77f6bd..5795479 100644 --- a/controlpi-plugins/statemachine.py +++ b/controlpi-plugins/statemachine.py @@ -66,7 +66,8 @@ class StateMachine(BasePlugin): for transition in self._states[state]['transitions']: for template in transition['triggers']: receives.append(template) - self._bus.register(self._name, sends, receives, self._receive) + self._bus.register(self._name, 'StateMachine', + sends, receives, self._receive) super()._process_conf(conf) async def run(self) -> None: -- 2.34.1