6#ifdef USE_DATETIME_DATE
25 void setup()
override;
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
void dump_config() override
MQTTDateComponent(datetime::DateEntity *date)
Construct this MQTTDateComponent instance with the provided friendly_name and date.
bool send_initial_state() override
const EntityBase * get_entity() const override
datetime::DateEntity * date_
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
bool publish_state(uint16_t year, uint8_t month, uint8_t day)
void setup() override
Override setup.
std::string component_type() const override
Providing packet encoding functions for exchanging data with a remote host.
Simple Helper struct used for Home Assistant MQTT send_discovery().