Add climate services required features (#35804)

This commit is contained in:
Martin Hjelmare 2020-05-20 23:47:30 +02:00 committed by GitHub
parent 9907e95c34
commit 1593bdf2e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 3 deletions

View file

@ -65,6 +65,12 @@ class MockClimateEntity(ClimateEntity):
"""
return [HVAC_MODE_OFF, HVAC_MODE_HEAT]
def turn_on(self) -> None:
"""Turn on."""
def turn_off(self) -> None:
"""Turn off."""
async def test_sync_turn_on(hass):
"""Test if async turn_on calls sync turn_on."""
@ -92,9 +98,13 @@ def test_deprecated_base_class(caplog):
"""Test deprecated base class."""
class CustomClimate(ClimateDevice):
"""Custom climate entity class."""
@property
def hvac_mode(self):
pass
@property
def hvac_modes(self):
pass