Skip to content

Commit

Permalink
Fix crash in old name code (#1636)
Browse files Browse the repository at this point in the history
* Fix crash in old name code

* [pre-commit.ci lite] apply automatic fixes

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
springfall2008 and pre-commit-ci-lite[bot] authored Nov 17, 2024
1 parent 8f6a372 commit 0d1cb18
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/predbat/predbat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10580,7 +10580,6 @@ def load_current_config(self):
if item.get("oldname", "") == name:
self.log("Restore setting from old name {} to new name {}".format(name, item["name"]))
current = item
name = item["name"]
if current:
item_value = settings[name]
if current.get("value", None) != item_value:
Expand Down

0 comments on commit 0d1cb18

Please sign in to comment.