From: Benjamin Braatz Date: Wed, 22 Sep 2021 10:12:01 +0000 (+0200) Subject: Only string-valued states for now (HACK). X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=ab960a8d4772758136c6bde5bfff639481ee9633;p=graphit%2Fcontrolpi-graph.git Only string-valued states for now (HACK). --- 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)