25 void setup()
override;
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
const EntityBase * get_entity() const override
void setup() override
Override setup.
std::string component_type() const override
Override for MQTTComponent, returns "select".
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
void dump_config() override
bool publish_state(const std::string &value)
bool send_initial_state() override
MQTTSelectComponent(select::Select *select)
Construct this MQTTSelectComponent instance with the provided friendly_name and select.
Base-class for all selects.
Providing packet encoding functions for exchanging data with a remote host.
Simple Helper struct used for Home Assistant MQTT send_discovery().