Improve climate type hints for supported_features (#82223)
This commit is contained in:
parent
9d8dfc2d71
commit
e85e79052b
6 changed files with 8 additions and 8 deletions
|
@ -197,7 +197,7 @@ class EsphomeClimateEntity(EsphomeEntity[ClimateInfo, ClimateState], ClimateEnti
|
|||
return self._static_info.visual_max_temperature
|
||||
|
||||
@property
|
||||
def supported_features(self) -> int:
|
||||
def supported_features(self) -> ClimateEntityFeature | int:
|
||||
"""Return the list of supported features."""
|
||||
features = 0
|
||||
if self._static_info.supports_two_point_target_temperature:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue