Skip to content

Commit

Permalink
Fix predbat update to show its active (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
springfall2008 authored Feb 4, 2024
1 parent aac58c8 commit c5d2fe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3129,11 +3129,11 @@ def download_predbat_releases(self):

# Refresh the list
self.expose_config("update", this_tag)
self.expose_config("version", new_version)
self.expose_config("version", new_version, force=True)

else:
self.log("WARN: Unable to download Predbat version information from github, return code: {}".format(data))
self.expose_config("version", False)
self.expose_config("version", False, force=True)

return self.releases

Expand Down Expand Up @@ -11098,7 +11098,7 @@ def download_predbat_version(self, version):
Returns:
bool: True if the download and update were successful, False otherwise.
"""
self.expose_config("update", True, force=True, in_progress=True)
self.expose_config("version", True, force=True, in_progress=True)
tag_split = version.split(" ")
this_path = os.path.dirname(__file__)
self.log("Split returns {}".format(tag_split))
Expand Down

0 comments on commit c5d2fe7

Please sign in to comment.