mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +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
|
@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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user