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