update on fermeterstepupdate -> remove step id from topic and show only active step as payload

This commit is contained in:
avollkopf 2024-02-23 06:26:43 +01:00
parent 28f0ca9779
commit 1450cd45d9
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.3.2.a8"
__version__ = "4.3.2.a9"
__codename__ = "Winter Storm"

View file

@ -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: