4#ifdef USE_BINARY_SENSOR
Base class for all binary_sensor-type classes.
void publish_state(bool new_state)
Publish a new state to the front-end.
One field of a status register; match has a bit set for each field value that reads as on.
BQ25186BinarySensor(uint8_t reg, uint8_t shift, uint8_t mask, uint8_t match)
void on_status(const BQ25186StatusRegisters &status)
std::array< uint8_t, BQ25186_STATUS_REGISTER_COUNT > BQ25186StatusRegisters