mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 13:04:13 +01:00
[ota] void
functions should return nothing (#7825)
This commit is contained in:
parent
7f75f2135d
commit
6c548a1596
@ -12,7 +12,7 @@ class OTAStateChangeTrigger : public Trigger<OTAState> {
|
||||
explicit OTAStateChangeTrigger(OTAComponent *parent) {
|
||||
parent->add_on_state_callback([this, parent](OTAState state, float progress, uint8_t error) {
|
||||
if (!parent->is_failed()) {
|
||||
return trigger(state);
|
||||
trigger(state);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user