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

Humidifier current humidity (#94874)

This commit is contained in:
Denis Shulyaka
2023-06-20 10:43:33 +03:00
committed by GitHub
parent 2be5bab5e1
commit 185aaa9e07
5 changed files with 20 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import pytest
import voluptuous as vol
from homeassistant.components.humidifier import (
ATTR_CURRENT_HUMIDITY,
ATTR_HUMIDITY,
ATTR_MAX_HUMIDITY,
ATTR_MIN_HUMIDITY,
@@ -43,6 +44,7 @@ def test_setup_params(hass: HomeAssistant) -> None:
state = hass.states.get(ENTITY_DEHUMIDIFIER)
assert state.state == STATE_ON
assert state.attributes.get(ATTR_HUMIDITY) == 54
assert state.attributes.get(ATTR_CURRENT_HUMIDITY) == 59
def test_default_setup_params(hass: HomeAssistant) -> None: