ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::valve::ValveTraits Class Reference

#include <valve_traits.h>

Public Member Functions

 ValveTraits ()=default
 
bool get_is_assumed_state () const
 
void set_is_assumed_state (bool is_assumed_state)
 
bool get_supports_position () const
 
void set_supports_position (bool supports_position)
 
bool get_supports_toggle () const
 
void set_supports_toggle (bool supports_toggle)
 
bool get_supports_stop () const
 
void set_supports_stop (bool supports_stop)
 

Protected Attributes

bool is_assumed_state_ {false}
 
bool supports_position_ {false}
 
bool supports_toggle_ {false}
 
bool supports_stop_ {false}
 

Detailed Description

Definition at line 6 of file valve_traits.h.

Constructor & Destructor Documentation

◆ ValveTraits()

esphome::valve::ValveTraits::ValveTraits ( )
default

Member Function Documentation

◆ get_is_assumed_state()

bool esphome::valve::ValveTraits::get_is_assumed_state ( ) const
inline

Definition at line 10 of file valve_traits.h.

◆ get_supports_position()

bool esphome::valve::ValveTraits::get_supports_position ( ) const
inline

Definition at line 12 of file valve_traits.h.

◆ get_supports_stop()

bool esphome::valve::ValveTraits::get_supports_stop ( ) const
inline

Definition at line 16 of file valve_traits.h.

◆ get_supports_toggle()

bool esphome::valve::ValveTraits::get_supports_toggle ( ) const
inline

Definition at line 14 of file valve_traits.h.

◆ set_is_assumed_state()

void esphome::valve::ValveTraits::set_is_assumed_state ( bool  is_assumed_state)
inline

Definition at line 11 of file valve_traits.h.

◆ set_supports_position()

void esphome::valve::ValveTraits::set_supports_position ( bool  supports_position)
inline

Definition at line 13 of file valve_traits.h.

◆ set_supports_stop()

void esphome::valve::ValveTraits::set_supports_stop ( bool  supports_stop)
inline

Definition at line 17 of file valve_traits.h.

◆ set_supports_toggle()

void esphome::valve::ValveTraits::set_supports_toggle ( bool  supports_toggle)
inline

Definition at line 15 of file valve_traits.h.

Field Documentation

◆ is_assumed_state_

bool esphome::valve::ValveTraits::is_assumed_state_ {false}
protected

Definition at line 20 of file valve_traits.h.

◆ supports_position_

bool esphome::valve::ValveTraits::supports_position_ {false}
protected

Definition at line 21 of file valve_traits.h.

◆ supports_stop_

bool esphome::valve::ValveTraits::supports_stop_ {false}
protected

Definition at line 23 of file valve_traits.h.

◆ supports_toggle_

bool esphome::valve::ValveTraits::supports_toggle_ {false}
protected

Definition at line 22 of file valve_traits.h.


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