Skip to content

Commit

Permalink
fix input_button events
Browse files Browse the repository at this point in the history
  • Loading branch information
Matchlighter committed Jan 9, 2024
1 parent fec004c commit a54379a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/home_assistant/entity_api/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class InputButton extends InputEntity<never> {
await this.ensureExists(pl);

// Listen to HA entity
plgmobx.reaction(this.application, () => pl.state[this.id]?.state, (state) => {
plgmobx.reaction(this.application, () => pl.state[this.uuid]?.state, (state) => {
this.on_pressed();
}, { fireImmediately: false })
}
Expand Down

0 comments on commit a54379a

Please sign in to comment.