mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-22 13:34:55 +01:00
bug fix
small bug fix with respect to auto mode for mash steps
This commit is contained in:
parent
93adef7740
commit
3ee23bfa59
2 changed files with 4 additions and 4 deletions
|
@ -107,14 +107,14 @@ class BasicController:
|
|||
logging.error("{} Cant start {} - {}".format(self.name, id, e))
|
||||
|
||||
def get_types(self):
|
||||
logging.info("{} Get Types".format(self.name))
|
||||
# logging.info("{} Get Types".format(self.name))
|
||||
result = {}
|
||||
for key, value in self.types.items():
|
||||
result[key] = dict(name=value.get("name"), properties=value.get("properties"), actions=value.get("actions"))
|
||||
return result
|
||||
|
||||
def get_state(self):
|
||||
logging.info("{} Get State".format(self.name))
|
||||
# logging.info("{} Get State".format(self.name))
|
||||
return {"data": list(map(lambda x: x.to_dict(), self.data)), "types":self.get_types()}
|
||||
|
||||
async def add(self, item):
|
||||
|
|
|
@ -312,7 +312,7 @@ class UploadController:
|
|||
|
||||
step_string = { "name": step_name,
|
||||
"props": {
|
||||
"AutoMode": "Yes" if step_type == "MashInStep" else "No",
|
||||
"AutoMode": "Yes" if step_type == "MashInStep" or step_type == "MashStep" else "No",
|
||||
"Kettle": self.id,
|
||||
"Sensor": self.kettle.sensor,
|
||||
"Temp": step_temp,
|
||||
|
@ -459,7 +459,7 @@ class UploadController:
|
|||
|
||||
step_string = { "name": step_name,
|
||||
"props": {
|
||||
"AutoMode": "Yes" if step_type == "MashInStep" else "No",
|
||||
"AutoMode": "Yes" if step_type == "MashInStep" or step_type == "MashStep" else "No",
|
||||
"Kettle": self.id,
|
||||
"Sensor": self.kettle.sensor,
|
||||
"Temp": step_temp,
|
||||
|
|
Loading…
Reference in a new issue