ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
esphome::ota::OTAStateTrigger< State > Class Template Referencefinal

#include <automation.h>

Inheritance diagram for esphome::ota::OTAStateTrigger< State >:
esphome::Trigger<> esphome::ota::OTAStateListener

Public Member Functions

 OTAStateTrigger (OTAComponent *parent)
 
void on_ota_state (OTAState state, float progress, uint8_t error) override
 
- Public Member Functions inherited from esphome::Trigger<>
void trigger (const Ts &...x)
 Inform the parent automation that the event has triggered.
 
void set_automation_parent (Automation< Ts... > *automation_parent)
 
void stop_action ()
 Stop any action connected to this trigger.
 
bool is_action_running ()
 Returns true if any action connected to this trigger is running.
 
- Public Member Functions inherited from esphome::ota::OTAStateListener
virtual ~OTAStateListener ()=default
 

Protected Attributes

OTAComponentparent_
 
- Protected Attributes inherited from esphome::Trigger<>
Automation< Ts... > * automation_parent_
 

Detailed Description

template<OTAState State>
class esphome::ota::OTAStateTrigger< State >

Definition at line 24 of file automation.h.

Constructor & Destructor Documentation

◆ OTAStateTrigger()

template<OTAState State>
esphome::ota::OTAStateTrigger< State >::OTAStateTrigger ( OTAComponent * parent)
inlineexplicit

Definition at line 26 of file automation.h.

Member Function Documentation

◆ on_ota_state()

template<OTAState State>
void esphome::ota::OTAStateTrigger< State >::on_ota_state ( OTAState state,
float progress,
uint8_t error )
inlineoverridevirtual

Implements esphome::ota::OTAStateListener.

Definition at line 28 of file automation.h.

Field Documentation

◆ parent_

template<OTAState State>
OTAComponent* esphome::ota::OTAStateTrigger< State >::parent_
protected

Definition at line 35 of file automation.h.


The documentation for this class was generated from the following file: