From e656dd31b09df7c15cf4c30019d7452881b4b980 Mon Sep 17 00:00:00 2001 From: Adam DeMuri Date: Mon, 19 Jan 2026 10:03:20 -0700 Subject: [PATCH] Fix coverage. (#1404) --- .github/workflows/pytest.yaml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index b8a59b40..597d04f2 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -61,7 +61,7 @@ jobs: -qq \ --timeout=9 \ --durations=10 \ - --cov="homeassistant" \ + --cov=homeassistant.components.adaptive_lighting \ --cov-report=xml \ -o console_output_style=count \ -p no:sugar \ diff --git a/Dockerfile b/Dockerfile index 353a0748..eb8fed44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,8 +48,8 @@ ENTRYPOINT ["python3", \ "--timeout=9", \ # Print the 10 slowest tests "--durations=10", \ - # Measure code coverage for the 'homeassistant' package - "--cov='homeassistant'", \ + # Measure code coverage for the 'homeassistant.components.adaptive_lighting' component + "--cov=homeassistant.components.adaptive_lighting", \ # Generate an XML report of the code coverage "--cov-report=xml", \ # Generate an HTML report of the code coverage