git.graph-it.com
/
graphit
/
controlpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6ee996
)
Fix codestyle in State
author
Benjamin Braatz
<bb@bbraatz.eu>
Sun, 7 Mar 2021 02:20:32 +0000
(
03:20
+0100)
committer
Benjamin Braatz
<bb@bbraatz.eu>
Sun, 7 Mar 2021 02:20:32 +0000
(
03:20
+0100)
controlpi-plugins/util.py
patch
|
blob
|
history
diff --git
a/controlpi-plugins/util.py
b/controlpi-plugins/util.py
index d59b33313b04bb95c0cc375063640cece62e7d64..e20e4d8fd5607c1459fb37e5bed7ba5eb7adbf76 100644
(file)
--- a/
controlpi-plugins/util.py
+++ b/
controlpi-plugins/util.py
@@
-92,7
+92,7
@@
class State(BasePlugin):
await self._bus.send(answer)
elif message['command'] == 'set state':
if ('new state' in message and
- self._state != message['new state']):
+
self._state != message['new state']):
self._state: bool = message['new state']
event = {'sender': self._name, 'event': 'changed',
'state': self._state}