20 void setup()
override;
std::string component_type() const override
MQTTEventComponent(event::Event *event)
const EntityBase * get_entity() const override
void dump_config() override
Simple Helper struct used for Home Assistant MQTT send_discovery().
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
Implementation of SPI Controller mode.
bool send_initial_state() override
Events do not send a state so just return true.
bool publish_event_(const std::string &event_type)
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...