mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-12-23 05:54:58 +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))
|
logging.error("{} Cant start {} - {}".format(self.name, id, e))
|
||||||
|
|
||||||
def get_types(self):
|
def get_types(self):
|
||||||
logging.info("{} Get Types".format(self.name))
|
# logging.info("{} Get Types".format(self.name))
|
||||||
result = {}
|
result = {}
|
||||||
for key, value in self.types.items():
|
for key, value in self.types.items():
|
||||||
result[key] = dict(name=value.get("name"), properties=value.get("properties"), actions=value.get("actions"))
|
result[key] = dict(name=value.get("name"), properties=value.get("properties"), actions=value.get("actions"))
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def get_state(self):
|
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()}
|
return {"data": list(map(lambda x: x.to_dict(), self.data)), "types":self.get_types()}
|
||||||
|
|
||||||
async def add(self, item):
|
async def add(self, item):
|
||||||
|
|
|
@ -312,7 +312,7 @@ class UploadController:
|
||||||
|
|
||||||
step_string = { "name": step_name,
|
step_string = { "name": step_name,
|
||||||
"props": {
|
"props": {
|
||||||
"AutoMode": "Yes" if step_type == "MashInStep" else "No",
|
"AutoMode": "Yes" if step_type == "MashInStep" or step_type == "MashStep" else "No",
|
||||||
"Kettle": self.id,
|
"Kettle": self.id,
|
||||||
"Sensor": self.kettle.sensor,
|
"Sensor": self.kettle.sensor,
|
||||||
"Temp": step_temp,
|
"Temp": step_temp,
|
||||||
|
@ -459,7 +459,7 @@ class UploadController:
|
||||||
|
|
||||||
step_string = { "name": step_name,
|
step_string = { "name": step_name,
|
||||||
"props": {
|
"props": {
|
||||||
"AutoMode": "Yes" if step_type == "MashInStep" else "No",
|
"AutoMode": "Yes" if step_type == "MashInStep" or step_type == "MashStep" else "No",
|
||||||
"Kettle": self.id,
|
"Kettle": self.id,
|
||||||
"Sensor": self.kettle.sensor,
|
"Sensor": self.kettle.sensor,
|
||||||
"Temp": step_temp,
|
"Temp": step_temp,
|
||||||
|
|
Loading…
Reference in a new issue