1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-17 18:52:19 +01:00

Add support for doing update entity refresh/check via API. (#7190)

This commit is contained in:
Jesse Hills
2024-08-05 16:58:20 +12:00
committed by GitHub
parent 38c25dec93
commit 87944f0c1b
6 changed files with 43 additions and 8 deletions

View File

@@ -33,8 +33,8 @@ class UpdateEntity : public EntityBase, public EntityBase_DeviceClass {
void publish_state();
void perform() { this->perform(false); }
virtual void perform(bool force) = 0;
virtual void check() = 0;
const UpdateInfo &update_info = update_info_;
const UpdateState &state = state_;