Skip to content

Commit

Permalink
Update settings right away rather than waiting for HA run (#711)
Browse files Browse the repository at this point in the history
* Update settings right away rather than waiting for HA run

#707

* [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 Feb 4, 2024
1 parent 327a567 commit 00d56ff
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 @@ -11045,7 +11045,7 @@ def download_predbat_version(self, version):
self.log("WARN: Predbat update failed to download Predbat version {}".format(version))
return False

def select_event(self, event, data, kwargs):
async def select_event(self, event, data, kwargs):
"""
Catch HA Input select updates

Expand Down Expand Up @@ -11093,7 +11093,7 @@ def select_event(self, event, data, kwargs):
self.update_pending = True
self.plan_valid = False

def number_event(self, event, data, kwargs):
async def number_event(self, event, data, kwargs):
"""
Catch HA Input number updates

Expand Down Expand Up @@ -11126,7 +11126,7 @@ def number_event(self, event, data, kwargs):
self.update_pending = True
self.plan_valid = False

def switch_event(self, event, data, kwargs):
async def switch_event(self, event, data, kwargs):
"""
Catch HA Switch toggle

Expand Down

0 comments on commit 00d56ff

Please sign in to comment.