Skip to content

Commit

Permalink
increase switch toggle timeout (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMagus authored Oct 29, 2022
1 parent 063bef1 commit 2abf744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/esp-switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class EspSwitch extends LitElement {
this.toggleCallback = resolve;
setTimeout(() => {
reject();
}, 250);
}, 500);
}).catch(() => {
this.state = prevState;
this.requestUpdate();
Expand Down

0 comments on commit 2abf744

Please sign in to comment.