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

#include <automation.h>

Inheritance diagram for esphome::ota::OTAProgressTrigger:
esphome::Trigger< float > esphome::ota::OTAStateListener

Public Member Functions

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

Detailed Description

Definition at line 42 of file automation.h.

Constructor & Destructor Documentation

◆ OTAProgressTrigger()

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

Definition at line 44 of file automation.h.

Member Function Documentation

◆ on_ota_state()

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

Implements esphome::ota::OTAStateListener.

Definition at line 46 of file automation.h.

Field Documentation

◆ parent_

OTAComponent* esphome::ota::OTAProgressTrigger::parent_
protected

Definition at line 53 of file automation.h.


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