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