Improve type hint in ecobee climate entity (#77133)
This commit is contained in:
parent
9467b7d018
commit
6693cfd036
1 changed files with 3 additions and 10 deletions
|
@ -303,6 +303,9 @@ async def async_setup_entry(
|
||||||
class Thermostat(ClimateEntity):
|
class Thermostat(ClimateEntity):
|
||||||
"""A thermostat class for Ecobee."""
|
"""A thermostat class for Ecobee."""
|
||||||
|
|
||||||
|
_attr_precision = PRECISION_TENTHS
|
||||||
|
_attr_temperature_unit = TEMP_FAHRENHEIT
|
||||||
|
|
||||||
def __init__(self, data, thermostat_index, thermostat):
|
def __init__(self, data, thermostat_index, thermostat):
|
||||||
"""Initialize the thermostat."""
|
"""Initialize the thermostat."""
|
||||||
self.data = data
|
self.data = data
|
||||||
|
@ -381,16 +384,6 @@ class Thermostat(ClimateEntity):
|
||||||
name=self.name,
|
name=self.name,
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
|
||||||
def temperature_unit(self):
|
|
||||||
"""Return the unit of measurement."""
|
|
||||||
return TEMP_FAHRENHEIT
|
|
||||||
|
|
||||||
@property
|
|
||||||
def precision(self) -> float:
|
|
||||||
"""Return the precision of the system."""
|
|
||||||
return PRECISION_TENTHS
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def current_temperature(self) -> float:
|
def current_temperature(self) -> float:
|
||||||
"""Return the current temperature."""
|
"""Return the current temperature."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue