Fix velbus climate current temp (#62329)

This commit is contained in:
Maikel Punie 2021-12-19 20:22:41 +01:00 committed by GitHub
parent 1b17c295d6
commit 9017d35e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,11 @@ class VelbusClimate(VelbusEntity, ClimateEntity):
None,
)
@property
def current_temperature(self) -> int | None:
"""Return the current temperature."""
return self._channel.get_state()
async def async_set_temperature(self, **kwargs: Any) -> None:
"""Set new target temperatures."""
if (temp := kwargs.get(ATTR_TEMPERATURE)) is None: