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