mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Improve docstring for sensor testcase (#81875)
This commit is contained in:
parent
adf84b0c62
commit
7aa4654eb4
@ -1729,7 +1729,11 @@ def test_compile_hourly_statistics_partially_unavailable(hass_recorder, caplog):
|
|||||||
def test_compile_hourly_statistics_unavailable(
|
def test_compile_hourly_statistics_unavailable(
|
||||||
hass_recorder, caplog, device_class, state_unit, value
|
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()
|
zero = dt_util.utcnow()
|
||||||
hass = hass_recorder()
|
hass = hass_recorder()
|
||||||
setup_component(hass, "sensor", {})
|
setup_component(hass, "sensor", {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user