25 void setup()
override;
void setup() override
Override setup.
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
MQTTNumberComponent(number::Number *number)
Construct this MQTTNumberComponent instance with the provided friendly_name and number.
Base-class for all numbers.
Simple Helper struct used for Home Assistant MQTT send_discovery().
std::string component_type() const override
Override for MQTTComponent, returns "number".
void dump_config() override
bool send_initial_state() override
bool publish_state(float value)
Implementation of SPI Controller mode.
const EntityBase * get_entity() const override
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...