MQTTTextComponent(text::Text *text)
Construct this MQTTTextComponent instance with the provided friendly_name and text.
Base-class for all text inputs.
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
bool send_initial_state() override
void dump_config() override
const EntityBase * get_entity() const override
std::string component_type() const override
Override for MQTTComponent, returns "text".
bool publish_state(const std::string &value)