Improve docstring for sensor testcase (#81875)

This commit is contained in:
Erik Montnemery 2022-11-09 23:59:58 +01:00 committed by GitHub
parent adf84b0c62
commit 7aa4654eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1729,7 +1729,11 @@ def test_compile_hourly_statistics_partially_unavailable(hass_recorder, caplog):
def test_compile_hourly_statistics_unavailable(
hass_recorder, caplog, device_class, state_unit, value
):
"""Test compiling hourly statistics, with the sensor being unavailable."""
"""Test compiling hourly statistics, with one sensor being unavailable.
sensor.test1 is unavailable and should not have statistics generated
sensor.test2 should have statistics generated
"""
zero = dt_util.utcnow()
hass = hass_recorder()
setup_component(hass, "sensor", {})