mirror of
https://github.com/esphome/esphome.git
synced 2026-09-19 02:58:38 +00:00
tweak
This commit is contained in:
@@ -67,6 +67,7 @@ class OTABackend {
|
||||
*/
|
||||
class OTAStateListener {
|
||||
public:
|
||||
virtual ~OTAStateListener() = default;
|
||||
virtual void on_ota_state(OTAState state, float progress, uint8_t error) = 0;
|
||||
};
|
||||
|
||||
@@ -99,6 +100,7 @@ class OTAComponent : public Component {
|
||||
*/
|
||||
class OTAGlobalStateListener {
|
||||
public:
|
||||
virtual ~OTAGlobalStateListener() = default;
|
||||
virtual void on_ota_global_state(OTAState state, float progress, uint8_t error, OTAComponent *component) = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user