1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Cleanup EntityFeature in tests (#78859)

This commit is contained in:
epenet
2022-09-21 10:48:55 +02:00
committed by GitHub
parent c88a874063
commit 0ac581a0b1
37 changed files with 472 additions and 472 deletions

View File

@@ -15,8 +15,8 @@ from homeassistant.components.humidifier import (
MODE_AUTO,
SERVICE_SET_HUMIDITY,
SERVICE_SET_MODE,
SUPPORT_MODES,
HumidifierDeviceClass,
HumidifierEntityFeature,
)
from homeassistant.const import (
ATTR_DEVICE_CLASS,
@@ -51,7 +51,9 @@ async def test_attributes(hass):
]
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "ecobee"
assert state.attributes.get(ATTR_DEVICE_CLASS) == HumidifierDeviceClass.HUMIDIFIER
assert state.attributes.get(ATTR_SUPPORTED_FEATURES) == SUPPORT_MODES
assert (
state.attributes.get(ATTR_SUPPORTED_FEATURES) == HumidifierEntityFeature.MODES
)
async def test_turn_on(hass):