mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2025-01-24 13:24:29 +01:00
fix for kbh upload (bug introduced with changes for BF upload)
This commit is contained in:
parent
7c93bd24e0
commit
2686b9c7c5
3 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
|||
__version__ = "4.4.7"
|
||||
__version__ = "4.4.8"
|
||||
__codename__ = "Yeast Starter"
|
||||
|
||||
|
|
|
@ -1068,8 +1068,10 @@ class UploadController:
|
|||
if cooldown_sensor is None or cooldown_sensor == '':
|
||||
cooldown_sensor = self.boilkettle.sensor # fall back to boilkettle sensor if no other sensor is specified
|
||||
step_timer = ""
|
||||
|
||||
step_temp = int(self.CoolDownTemp) if (self.fermentation_step_temp is None or self.fermentation_step_temp <= int(self.CoolDownTemp)) else self.fermentation_step_temp
|
||||
try:
|
||||
step_temp = int(self.CoolDownTemp) if (self.fermentation_step_temp is None or self.fermentation_step_temp <= int(self.CoolDownTemp)) else self.fermentation_step_temp
|
||||
except:
|
||||
step_temp = int(self.CoolDownTemp)
|
||||
step_string = { "name": "Cooldown",
|
||||
"props": {
|
||||
"Kettle": self.boilid,
|
||||
|
|
|
@ -33,6 +33,19 @@ class SystemHttpEndpoints:
|
|||
version= plugin_list[0].get("Version", "not detected")
|
||||
except:
|
||||
version="not detected"
|
||||
|
||||
spindle=self.cbpi.config.get("spindledata", "No")
|
||||
if spindle == "Yes":
|
||||
spindledata = True
|
||||
else:
|
||||
spindledata = False
|
||||
|
||||
try:
|
||||
plugin_list = await self.cbpi.plugin.load_plugin_list("cbpi4spindle")
|
||||
version= plugin_list[0].get("Version", "not detected")
|
||||
except:
|
||||
version="not detected"
|
||||
|
||||
|
||||
return web.json_response(data=dict(
|
||||
actor=self.cbpi.actor.get_state(),
|
||||
|
@ -45,6 +58,7 @@ class SystemHttpEndpoints:
|
|||
notifications=self.cbpi.notification.get_state(),
|
||||
bf_recipes=await self.cbpi.upload.get_brewfather_recipes(0),
|
||||
version=__version__,
|
||||
spindledata=spindledata,
|
||||
guiversion=version,
|
||||
codename=__codename__)
|
||||
, dumps=json_dumps)
|
||||
|
|
Loading…
Add table
Reference in a new issue