mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-09 17:07:43 +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"
|
__codename__ = "Winter Storm"
|
||||||
|
|
||||||
|
|
|
@ -547,9 +547,10 @@ class FermentationController:
|
||||||
for fermenter in fermentersteps:
|
for fermenter in fermentersteps:
|
||||||
for step in fermenter['steps']:
|
for step in fermenter['steps']:
|
||||||
if step['status'] == 'A':
|
if step['status'] == 'A':
|
||||||
self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), step)
|
# self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), step)
|
||||||
else:
|
self.cbpi.push_update("cbpi/{}/{}".format(key,fermenter['id']), step)
|
||||||
self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), "")
|
#else:
|
||||||
|
# self.cbpi.push_update("cbpi/{}/{}/{}".format(key,fermenter['id'],step['id']), "")
|
||||||
|
|
||||||
|
|
||||||
async def call_action(self, id, action, parameter) -> None:
|
async def call_action(self, id, action, parameter) -> None:
|
||||||
|
|
Loading…
Reference in a new issue