Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ jobs:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
# Pages takes one deployment at a time, and refuses a second while one
# runs. Wait for it instead; of the ones waiting, the newest goes.
concurrency:
group: pages
cancel-in-progress: false
permissions:
pages: write
id-token: write
Expand Down
5 changes: 5 additions & 0 deletions tests/ectoplasms/history_stats/services/test_set_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@

from homeassistant.core import HomeAssistant

# The console time counts from midnight, and the tests play hours on it. On
# the real clock, a test that starts at 23:12 in the tests' time zone counts
# only the twelve minutes before midnight. Noon on a fixed day, Pacific time.
pytestmark = pytest.mark.freeze_time("2026-06-15 19:00:00+00:00")

TWO_HOURS = {"days": 0, "hours": 2, "minutes": 0, "seconds": 0}

# The console time of the last two hours: no start, so the period ends now.
Expand Down
Loading