void dump_config() override
void add_on_state_callback(std::function< void(std::string)> callback)
virtual std::string unique_id()
Override this method to set the unique ID of this sensor.
MQTTTextSensor(text_sensor::TextSensor *sensor)
std::string unique_id() override
bool send_initial_state() override
bool publish_state(const std::string &value)
const EntityBase * get_entity() const override
text_sensor::TextSensor * sensor_
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
std::string component_type() const override