mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-29 01:08:28 +02:00
Drop len parameter from parse_number() (#2883)
This commit is contained in:
@@ -79,7 +79,7 @@ void EZOSensor::loop() {
|
||||
if (buf[i] == ',')
|
||||
buf[i] = '\0';
|
||||
|
||||
float val = parse_number<float>((char *) &buf[1], sizeof(buf) - 2).value_or(0);
|
||||
float val = parse_number<float>((char *) &buf[1]).value_or(0);
|
||||
this->publish_state(val);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user