Merge pull request #4360 from euphi/patch-1

Usermod BME280: Fix "Unit of Measurement" for temperature
This commit is contained in:
netmindz 2024-12-10 08:07:24 +00:00 committed by GitHub
commit d7bebc2659
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -444,6 +444,7 @@ public:
configComplete &= getJsonValue(top[F("PublishAlways")], PublishAlways, false);
configComplete &= getJsonValue(top[F("UseCelsius")], UseCelsius, true);
configComplete &= getJsonValue(top[F("HomeAssistantDiscovery")], HomeAssistantDiscovery, false);
tempScale = UseCelsius ? "°C" : "°F";
DEBUG_PRINT(FPSTR(_name));
if (!initDone) {