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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user