22    switch (this->
type_) {
 
 
 
This class simplifies creating components that periodically check a state.
 
Base-class for all sensors.
 
void publish_state(float state)
Publish a new state to the front-end.
 
void set_type(SensorType type)
 
void dump_config() override
 
void set_parent(Sun *parent)
 
Providing packet encoding functions for exchanging data with a remote host.