From 4caa86c150db33731d1a3dc17a8fb6e9ddc3751e Mon Sep 17 00:00:00 2001 From: Pierre Belanger Date: Tue, 10 Oct 2023 13:36:53 -0400 Subject: [PATCH] Update sensor.py - [typo] Teamperature -> Temperature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello. Thank you for this great work! Noticed I had sensors named "teamperature", I believe this should fix if not let me know what else is needed or you may go ahead and push over my changes. ``` "aliases": [], "area_id": null, "capabilities": { "state_class": "measurement" }, "config_entry_id": "9600bccb7090972972915XXXXXXXXXX", "device_class": null, "device_id": "f88c407b537e65a4006XXXXXXXXXX", "disabled_by": null, "entity_category": null, "entity_id": "sensor.tmr_h3r_sensors_wet_bulb_teamperature", "hidden_by": null, "icon": null, "id": "b469204424716522ae9cd6XXXXXXXXX", "has_entity_name": true, "name": null, "options": { "conversation": { "should_expose": true } }, "original_device_class": "temperature", "original_icon": null, "original_name": "Wet Bulb Teamperature", "platform": "weatherflow_forecast", "supported_features": 0, "translation_key": null, "unique_id": "101XXX wet_bulb_temperature", "unit_of_measurement": "°C" }, ``` --- custom_components/weatherflow_forecast/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/weatherflow_forecast/sensor.py b/custom_components/weatherflow_forecast/sensor.py index 269bf87..384110a 100644 --- a/custom_components/weatherflow_forecast/sensor.py +++ b/custom_components/weatherflow_forecast/sensor.py @@ -309,14 +309,14 @@ class WeatherFlowSensorEntityDescription(SensorEntityDescription): ), WeatherFlowSensorEntityDescription( key="wet_bulb_globe_temperature", - name="Wet Bulb Globe Teamperature", + name="Wet Bulb Globe Temperature", native_unit_of_measurement=UnitOfTemperature.CELSIUS, device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT, ), WeatherFlowSensorEntityDescription( key="wet_bulb_temperature", - name="Wet Bulb Teamperature", + name="Wet Bulb Temperature", native_unit_of_measurement=UnitOfTemperature.CELSIUS, device_class=SensorDeviceClass.TEMPERATURE, state_class=SensorStateClass.MEASUREMENT,