Version Text Sensor

See Application::make_version_text_sensor().

API Reference

class VersionTextSensor : public text_sensor::TextSensor, public Component

Public Functions

VersionTextSensor(const std::string &name)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

float get_setup_priority() const

priority of setup().

higher -> executed earlier

Defaults to 0.

The setup priority of this component

std::string icon()
std::string unique_id()