Skip to content

Commit

Permalink
v2024.5.2 fixing bug when no temperature or preset was selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenterheerdt committed May 22, 2024
1 parent 9329516 commit 3fdae06
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/grill_buddy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from enum import Enum

VERSION = "v2024.5.1"
VERSION = "v2024.5.2"
NAME = "Grill Buddy"
MANUFACTURER = "@jeroenterheerdt"

Expand Down
2 changes: 1 addition & 1 deletion custom_components/grill_buddy/frontend/dist/grill-buddy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4303,7 +4303,7 @@
.narrow=${this.narrow}
></ha-menu-button>
<div class="main-title">${Hr("title", this.hass.language)}</div>
<div class="version">${"v2024.5.1"}</div>
<div class="version">${"v2024.5.2"}</div>
</div>
<ha-tabs
Expand Down
2 changes: 1 addition & 1 deletion custom_components/grill_buddy/frontend/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = "v2024.5.1";
export const VERSION = "v2024.5.2";
export const REPO = "https://github.com/jeroenterheerdt/grill_buddy";
export const ISSUES_URL = REPO + "/issues";

Expand Down
2 changes: 1 addition & 1 deletion custom_components/grill_buddy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_push",
"issue_tracker": "https://github.com/jeroenterheerdt/grill_buddy/issues",
"requirements": [],
"version": "v2024.5.1"
"version": "v2024.5.2"
}
6 changes: 5 additions & 1 deletion custom_components/grill_buddy/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ def async_sensor_state_changed(

# add prediction

if not is_number(old_state) or not is_number(self._temperature):
if (
not is_number(old_state)
or not is_number(self._temperature)
or not is_number(target_temperature)
):
delta = 0
else:
if not self._system_is_metric:
Expand Down

0 comments on commit 3fdae06

Please sign in to comment.