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