Skip to content

Commit

Permalink
Another example
Browse files Browse the repository at this point in the history
  • Loading branch information
rgc99 committed Sep 30, 2021
1 parent 86c8178 commit edbac4f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
but a place to check if configuration files are valid and possibly
debug them."""
import pytest
from datetime import timedelta
from datetime import timedelta, datetime
import json
import homeassistant.core as ha
from homeassistant.config import (
Expand All @@ -27,6 +27,7 @@
no_check,
quiet_mode,
run_for,
run_until,
test_config_dir,
)

Expand Down Expand Up @@ -73,6 +74,17 @@ async def test_config(hass: ha.HomeAssistant, skip_dependencies, skip_history):
# )
# await finish_test(hass, coordinator, start_time, True)

"""Run to a point in time"""
# start_time = await begin_test(1, coordinator)
# next_time = await run_until(
# hass,
# coordinator,
# start_time,
# datetime.fromisoformat("2021-01-04 06:02:00+00:00"),
# True,
# )
# await finish_test(hass, coordinator, next_time, True)

"""Run for a period of time"""
# start_time = await begin_test(1, coordinator)
# next_time = await run_for(
Expand Down

0 comments on commit edbac4f

Please sign in to comment.