Improve climate type hints for supported_features (#82223)

This commit is contained in:
epenet 2022-11-16 22:07:48 +01:00 committed by GitHub
parent 9d8dfc2d71
commit e85e79052b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View file

@ -77,7 +77,7 @@ class MySensorsHVAC(mysensors.device.MySensorsEntity, ClimateEntity):
_attr_hvac_modes = OPERATION_LIST
@property
def supported_features(self) -> int:
def supported_features(self) -> ClimateEntityFeature | int:
"""Return the list of supported features."""
features = 0
set_req = self.gateway.const.SetReq