std::string component_type() const override
Override for MQTTComponent, returns "text".
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
void dump_config() override
bool send_initial_state() override
MQTTTextComponent(text::Text *text)
Construct this MQTTTextComponent instance with the provided friendly_name and text.
const EntityBase * get_entity() const override
bool publish_state(const std::string &value)
TextCall & set_value(const std::string &value)
Base-class for all text inputs.
TextCall make_call()
Instantiate a TextCall object to modify this text component's state.
void add_on_state_callback(std::function< void(std::string)> &&callback)
TextMode get_mode() const