Remove condition from ecobee humidifier attribute test (#115197)

Remove conditions from ecobee humidifier attribute test
This commit is contained in:
Jan Bouwhuis 2024-04-08 14:33:24 +02:00 committed by GitHub
parent 53b4fd419a
commit d9dada4fb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,21 +44,18 @@ async def test_attributes(hass: HomeAssistant) -> None:
state = hass.states.get(DEVICE_ID) state = hass.states.get(DEVICE_ID)
assert state.state == STATE_ON assert state.state == STATE_ON
if state.attributes.get(ATTR_CURRENT_HUMIDITY): assert state.attributes[ATTR_CURRENT_HUMIDITY] == 15
assert state.attributes.get(ATTR_CURRENT_HUMIDITY) == 15 assert state.attributes[ATTR_MIN_HUMIDITY] == DEFAULT_MIN_HUMIDITY
assert state.attributes.get(ATTR_MIN_HUMIDITY) == DEFAULT_MIN_HUMIDITY assert state.attributes[ATTR_MAX_HUMIDITY] == DEFAULT_MAX_HUMIDITY
assert state.attributes.get(ATTR_MAX_HUMIDITY) == DEFAULT_MAX_HUMIDITY assert state.attributes[ATTR_HUMIDITY] == 40
assert state.attributes.get(ATTR_HUMIDITY) == 40 assert state.attributes[ATTR_AVAILABLE_MODES] == [
assert state.attributes.get(ATTR_AVAILABLE_MODES) == [
MODE_OFF, MODE_OFF,
MODE_AUTO, MODE_AUTO,
MODE_MANUAL, MODE_MANUAL,
] ]
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "ecobee" assert state.attributes[ATTR_FRIENDLY_NAME] == "ecobee"
assert state.attributes.get(ATTR_DEVICE_CLASS) == HumidifierDeviceClass.HUMIDIFIER assert state.attributes[ATTR_DEVICE_CLASS] == HumidifierDeviceClass.HUMIDIFIER
assert ( assert state.attributes[ATTR_SUPPORTED_FEATURES] == HumidifierEntityFeature.MODES
state.attributes.get(ATTR_SUPPORTED_FEATURES) == HumidifierEntityFeature.MODES
)
async def test_turn_on(hass: HomeAssistant) -> None: async def test_turn_on(hass: HomeAssistant) -> None: