22 switch (this->
type_) {
void set_type(SensorType type)
void dump_config() override
This class simplifies creating components that periodically check a state.
void publish_state(float state)
Publish a new state to the front-end.
Implementation of SPI Controller mode.
Base-class for all sensors.
void set_parent(Sun *parent)