fix for kbh upload (bug introduced with changes for BF upload)

This commit is contained in:
avollkopf 2024-12-22 19:12:48 +01:00
parent 7c93bd24e0
commit 2686b9c7c5
3 changed files with 19 additions and 3 deletions

View file

@ -1,3 +1,3 @@
__version__ = "4.4.7"
__version__ = "4.4.8"
__codename__ = "Yeast Starter"

View file

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

View file

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