mirror of
https://github.com/esphome/esphome.git
synced 2025-09-15 09:42:19 +01:00
[core] Update Entities (#6885)
This commit is contained in:
12
esphome/components/update/update_entity.cpp
Normal file
12
esphome/components/update/update_entity.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "update_entity.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace update {
|
||||
|
||||
void UpdateEntity::publish_state() {
|
||||
this->has_state_ = true;
|
||||
this->state_callback_.call();
|
||||
}
|
||||
|
||||
} // namespace update
|
||||
} // namespace esphome
|
Reference in New Issue
Block a user