ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
esphome::ota::OTAStateChangeTrigger Class Referencefinal

#include <automation.h>

Inheritance diagram for esphome::ota::OTAStateChangeTrigger:
esphome::Trigger< OTAState > esphome::ota::OTAStateListener

Public Member Functions

 OTAStateChangeTrigger (OTAComponent *parent)
 
void on_ota_state (OTAState state, float progress, uint8_t error) override
 
- Public Member Functions inherited from esphome::Trigger< OTAState >
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< OTAState >
Automation< Ts... > * automation_parent_
 

Detailed Description

Definition at line 10 of file automation.h.

Constructor & Destructor Documentation

◆ OTAStateChangeTrigger()

esphome::ota::OTAStateChangeTrigger::OTAStateChangeTrigger ( OTAComponent * parent)
inlineexplicit

Definition at line 12 of file automation.h.

Member Function Documentation

◆ on_ota_state()

void esphome::ota::OTAStateChangeTrigger::on_ota_state ( OTAState state,
float progress,
uint8_t error )
inlineoverridevirtual

Implements esphome::ota::OTAStateListener.

Definition at line 14 of file automation.h.

Field Documentation

◆ parent_

OTAComponent* esphome::ota::OTAStateChangeTrigger::parent_
protected

Definition at line 21 of file automation.h.


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