mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-24 07:58:11 +01:00
update on fermeterstepupdate -> remove step id from topic and show only active step as payload
This commit is contained in:
parent
28f0ca9779
commit
1450cd45d9
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
|||
__version__ = "4.3.2.a8"
|
||||
__version__ = "4.3.2.a9"
|
||||
__codename__ = "Winter Storm"
|
||||
|
||||
|
|
|
@ -547,9 +547,10 @@ class FermentationController:
|
|||
for fermenter in fermentersteps:
|
||||
for step in fermenter['steps']:
|
||||
if step['status'] == 'A':
|
||||
self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), step)
|
||||
else:
|
||||
self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), "")
|
||||
# self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), step)
|
||||
self.cbpi.push_update("cbpi/{}/{}".format(key,fermenter['id']), step)
|
||||
#else:
|
||||
# self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), "")
|
||||
|
||||
|
||||
async def call_action(self, id, action, parameter) -> None:
|
||||
|
|
Loading…
Reference in a new issue