Home IO Control
ESPHome add-on for IO-Homecontrol devices
Loading...
Searching...
No Matches
esphome::home_io_control::IOHomeCompanionTextSensor Class Reference

Shared base for the textual per-device diagnostic companions. More...

#include <platform_companion_sensors.h>

Inheritance diagram for esphome::home_io_control::IOHomeCompanionTextSensor:
Collaboration diagram for esphome::home_io_control::IOHomeCompanionTextSensor:

Public Member Functions

float get_setup_priority () const override
 Get setup priority so the parent hub is available first.
Public Member Functions inherited from esphome::home_io_control::DeviceBoundCompanion
void set_parent (IOHomeControlComponent *parent)
 Set the parent controller component.
void set_device_id (const std::string &id)
 Set the device ID whose state this companion sensor exposes.

Additional Inherited Members

Protected Member Functions inherited from esphome::home_io_control::DeviceBoundCompanion
void register_companion_binding_ (const std::function< void(const IoDevice &)> &publish)
 Shared setup() body: subscribe to this device's updates and publish the initial state.
Protected Attributes inherited from esphome::home_io_control::DeviceBoundCompanion
IOHomeControlComponent * parent_ {nullptr}
std::string device_id_

Detailed Description

Shared base for the textual per-device diagnostic companions.

The text-sensor counterpart of IOHomeCompanionSensor; same reasoning.

Definition at line 42 of file platform_companion_sensors.h.

Member Function Documentation

◆ get_setup_priority()

float esphome::home_io_control::IOHomeCompanionTextSensor::get_setup_priority ( ) const
inlinenodiscardoverride

Get setup priority so the parent hub is available first.

Returns
setup_priority::DATA.

Definition at line 46 of file platform_companion_sensors.h.


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