5 #ifdef USE_BINARY_SENSOR 21 void setup()
override;
bool send_initial_state() override
void set_is_status(bool status)
void dump_config() override
const EntityBase * get_entity() const override
Simple Helper struct used for Home Assistant MQTT send_discovery().
std::string component_type() const override
esphome::binary_sensor::BinarySensor * binary_sensor
Implementation of SPI Controller mode.
Base class for all binary_sensor-type classes.
binary_sensor::BinarySensor * binary_sensor_
void send_discovery(JsonObject root, mqtt::SendDiscoveryConfig &config) override
MQTTBinarySensorComponent(binary_sensor::BinarySensor *binary_sensor)
Construct a MQTTBinarySensorComponent.
MQTTComponent is the base class for all components that interact with MQTT to expose certain function...
bool publish_state(bool state)