mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 02:37:50 +00:00
parent
b4238443c8
commit
1e05c81fe6
@ -220,7 +220,7 @@ async def test_cost_sensor_price_entity(
|
||||
hass.states.async_set(
|
||||
usage_sensor_entity_id,
|
||||
"14",
|
||||
{ATTR_UNIT_OF_MEASUREMENT: ENERGY_KILO_WATT_HOUR},
|
||||
energy_attributes,
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get(cost_sensor_entity_id)
|
||||
|
@ -359,6 +359,7 @@ def test_compile_hourly_sum_statistics_total_increasing_small_dip(
|
||||
assert stats == {
|
||||
"sensor.test1": [
|
||||
{
|
||||
"last_reset": None,
|
||||
"statistic_id": "sensor.test1",
|
||||
"start": process_timestamp_to_utc_isoformat(zero),
|
||||
"max": None,
|
||||
@ -368,6 +369,7 @@ def test_compile_hourly_sum_statistics_total_increasing_small_dip(
|
||||
"sum": approx(factor * 10.0),
|
||||
},
|
||||
{
|
||||
"last_reset": None,
|
||||
"statistic_id": "sensor.test1",
|
||||
"start": process_timestamp_to_utc_isoformat(zero + timedelta(hours=1)),
|
||||
"max": None,
|
||||
@ -377,6 +379,7 @@ def test_compile_hourly_sum_statistics_total_increasing_small_dip(
|
||||
"sum": approx(factor * 30.0),
|
||||
},
|
||||
{
|
||||
"last_reset": None,
|
||||
"statistic_id": "sensor.test1",
|
||||
"start": process_timestamp_to_utc_isoformat(zero + timedelta(hours=2)),
|
||||
"max": None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user