1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 14:18:14 +00:00

remove unused variable

This commit is contained in:
rfdarter 2025-02-25 00:17:06 +01:00
parent fe066baa73
commit bc5e427cb8

View File

@ -17,7 +17,6 @@ void UptimeTimestampTextSensor::setup() {
return; // No need to update the timestamp if it's already set
auto now = this->time_->now();
const uint32_t ms = millis();
if (!now.is_valid())
return; // No need to update the timestamp if the time is not valid