Skip to content

Commit 4bed22e

Browse files
authored
Merge pull request #492 from dvd-dev/feature/add-humidity
Fix humidity test name and docstring to match its cases
2 parents d038f28 + ce84853 commit 4bed22e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/test_graphql_value_mapper.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ def test_hub_disconnected_follows_connection_status(
104104
pytest.param(None, [], id="null"),
105105
],
106106
)
107-
def test_thermostat_humidity_skips_missing_sensor(
107+
def test_thermostat_humidity_reports_only_real_readings(
108108
ambient_humidity: float | None, expected: list[float]
109109
) -> None:
110-
"""Models without a humidity sensor report 0, which must not surface as 0%."""
110+
"""Non-zero humidity is kept; 0 (no sensor, e.g. HT402) or null is dropped."""
111111
device = _device("onAnyDeviceUpdated-tstat.json")
112112
device["ambientHumidity"] = ambient_humidity
113113

0 commit comments

Comments
 (0)