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