mirror of
https://github.com/home-assistant/core.git
synced 2026-09-03 02:34:57 -05:00
Add missing outdoor temperature unit for Tado (#51197)
* Fix outdoor temperature unit for Tado Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> * tado: simplify if conditions Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
@@ -139,7 +139,7 @@ class TadoHomeSensor(TadoHomeEntity, SensorEntity):
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the unit of measurement."""
|
||||
if self.home_variable == "temperature":
|
||||
if self.home_variable in ["temperature", "outdoor temperature"]:
|
||||
return TEMP_CELSIUS
|
||||
if self.home_variable == "solar percentage":
|
||||
return PERCENTAGE
|
||||
|
||||
Reference in New Issue
Block a user