Update usermod_temperature.h

Typo in line 149
This commit is contained in:
srg74 2022-05-27 15:42:03 -04:00 committed by GitHub
parent 7d25b234d5
commit 43c5de074f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ class UsermodTemperature : public Usermod {
strcpy(buf, mqttDeviceTopic);
strcat_P(buf, PSTR("/temperature"));
json[F("state_topic")] = buf;
json[F("device_class")] = F("tempearature");
json[F("device_class")] = F("temperature");
json[F("unique_id")] = escapedMac.c_str();
json[F("unit_of_measurement")] = F("°C");
payload_size = serializeJson(json, json_str);