forked from home-assistant/core
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:
committed by
GitHub
parent
ac922916c1
commit
fe0771f7f1
@@ -139,7 +139,7 @@ class TadoHomeSensor(TadoHomeEntity, SensorEntity):
|
|||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
"""Return the unit of measurement."""
|
"""Return the unit of measurement."""
|
||||||
if self.home_variable == "temperature":
|
if self.home_variable in ["temperature", "outdoor temperature"]:
|
||||||
return TEMP_CELSIUS
|
return TEMP_CELSIUS
|
||||||
if self.home_variable == "solar percentage":
|
if self.home_variable == "solar percentage":
|
||||||
return PERCENTAGE
|
return PERCENTAGE
|
||||||
|
Reference in New Issue
Block a user