Skip to content

Commit

Permalink
Return early if off on key press (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Jun 25, 2024
1 parent 6c57266 commit 68b56e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions home_assistant_streamdeck_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,7 @@ async def _handle_key_press(
if not config._is_on:
turn_on(config, deck, complete_state)
await _sync_input_boolean(config.state_entity_id, websocket, "on")
return

def update_all() -> None:
deck.reset()
Expand Down

0 comments on commit 68b56e3

Please sign in to comment.