[esp8266] Store component warning strings in flash to reduce RAM usage (#10623)
This commit is contained in:
1 parent
4d09932320
commit
c33bb3a8a9
26 files changed
+70
-55
No files matched your search
@@ -6,7 +6,7 @@ namespace m5stack_8angle {
|
||||
void M5Stack8AngleSwitchBinarySensor::update() {
|
||||
int8_t out = this->parent_->read_switch();
|
||||
if (out == -1) {
|
||||
this->status_set_warning("Could not read binary sensor state from M5Stack 8Angle.");
|
||||
this->status_set_warning(LOG_STR("Could not read binary sensor state from M5Stack 8Angle."));
|
||||
return;
|
||||
}
|
||||
this->publish_state(out != 0);
|
||||
|
||||
Reference in new issue
Block a user