Type check KNX integration __init__ and knx_entity (#48044)

This commit is contained in:
Matthias Alphart 2021-03-26 16:10:55 +01:00 committed by GitHub
parent d2d78d6205
commit 8fa935234a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 45 deletions

View file

@ -72,7 +72,7 @@ class KNXClimate(KnxEntity, ClimateEntity):
@property
def current_temperature(self) -> float | None:
"""Return the current temperature."""
return self._device.temperature.value # type: ignore[no-any-return]
return self._device.temperature.value
@property
def target_temperature_step(self) -> float:
@ -82,7 +82,7 @@ class KNXClimate(KnxEntity, ClimateEntity):
@property
def target_temperature(self) -> float | None:
"""Return the temperature we try to reach."""
return self._device.target_temperature.value # type: ignore[no-any-return]
return self._device.target_temperature.value
@property
def min_temp(self) -> float: