From: Benjamin Braatz Date: Sun, 7 Mar 2021 00:26:33 +0000 (+0100) Subject: State answers to 'set state' also if unchanged X-Git-Tag: v0.3.0~69 X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=cff3bad4192a2657dc12cc70e3dce0b8c03343d0;p=graphit%2Fcontrolpi.git State answers to 'set state' also if unchanged --- diff --git a/controlpi-plugins/util.py b/controlpi-plugins/util.py index ae49071..c51e81e 100644 --- a/controlpi-plugins/util.py +++ b/controlpi-plugins/util.py @@ -84,6 +84,9 @@ class State(BasePlugin): event = {'sender': self._name, 'event': 'changed', 'state': self._state} await self._bus.send(event) + else: + answer = {'sender': self._name, 'state': self._state} + await self._bus.send(answer) def _process_conf(self, conf: PluginConfiguration) -> None: self._state = False