Skip to content

Commit

Permalink
Fixed text_sensor not updated when using set action (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
muxa committed Dec 4, 2021
1 parent 19b97b3 commit 361f65a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ namespace esphome
this->state_machine_ = state_machine;
this->state_machine_->add_on_transition_callback(
[this](StateTransition transition)
{
this->update();
});
this->state_machine_->add_on_set_callback(
[this](std::string state)
{
this->update();
});
Expand Down

0 comments on commit 361f65a

Please sign in to comment.