From ab960a8d4772758136c6bde5bfff639481ee9633 Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Wed, 22 Sep 2021 12:12:01 +0200 Subject: [PATCH] Only string-valued states for now (HACK). --- controlpi_plugins/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controlpi_plugins/graph.py b/controlpi_plugins/graph.py index 99b8283..557b275 100644 --- a/controlpi_plugins/graph.py +++ b/controlpi_plugins/graph.py @@ -103,8 +103,8 @@ class Graph(BasePlugin): self._states = {} for state in self.conf['states']: receives.append(MessageTemplate({'sender': {'const': state}, - 'state': {}})) - self._states[state] = None + 'state': {'type': 'string'}})) + self._states[state] = '' self.bus.register(self.name, 'Graph', sends, receives, self._receive) -- 2.34.1