4#ifdef USE_BQ25186_PG_GPO
14 if (this->
parent_->write_pg_gpo_level(state))
Helper class to easily give an object a parent of type T.
BQ25186Component * parent_
void write_state(bool state) override
Base class for all switches.
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a state to the front-end from the back-end.