Skip to content

Commit

Permalink
Dont run wake func twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Feb 4, 2024
1 parent b7b5bb1 commit 2da5cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/teslemetry/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TeslemetryButtonEntityDescription(ButtonEntityDescription):


DESCRIPTIONS: tuple[TeslemetryButtonEntityDescription, ...] = (
TeslemetryButtonEntityDescription(key="wake", func=lambda api: api.wake_up()),
TeslemetryButtonEntityDescription(key="wake", func=lambda api: None), # Every button also runs wakeup
TeslemetryButtonEntityDescription(
key="flash_lights", func=lambda api: api.flash_lights()
),
Expand Down

0 comments on commit 2da5cf8

Please sign in to comment.