mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 04:20:56 +00: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) {
|
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…
x
Reference in New Issue
Block a user