ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
m5stack_8angle_binary_sensor.cpp
Go to the documentation of this file.
2
4
6 int8_t out = this->parent_->read_switch();
7 if (out == -1) {
8 this->status_set_warning(LOG_STR("Could not read binary sensor state from M5Stack 8Angle."));
9 return;
10 }
11 this->publish_state(out != 0);
13}
14
15} // namespace esphome::m5stack_8angle
void status_clear_warning()
Definition component.h:289
void publish_state(bool new_state)
Publish a new state to the front-end.