mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00: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:
parent
ac922916c1
commit
fe0771f7f1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user