Skip to content

Add Docker dev environment and charging binary sensor - #67

Merged
kylegordon merged 1 commit into
masterfrom
feat/docker-dev-environment
Jun 29, 2026
Merged

Add Docker dev environment and charging binary sensor#67
kylegordon merged 1 commit into
masterfrom
feat/docker-dev-environment

Conversation

@kylegordon

Copy link
Copy Markdown
Owner

Summary

  • Add Dockerfile.dev — a minimal Python 3.12 image that installs requirements-test.txt (which pulls in Home Assistant via pytest-homeassistant-custom-component)
  • Document the Docker-based workflow in README.md (Local Development section) and CLAUDE.md so all contributors run tests and lint inside the container rather than on the host
  • Add PetTracerChargingBinarySensor to binary_sensor.py, wire it into async_setup_entry, and add full test coverage in tests/test_binary_sensor.py

Test plan

  • docker build -f Dockerfile.dev -t pettracer-dev . completes successfully
  • docker run --rm -v "$PWD":/workspace pettracer-dev pytest --cov=custom_components.pettracer --cov-report=term -v — all tests pass, coverage ≥80%
  • CI test and validate jobs pass

🤖 Generated with Claude Code

- Add Dockerfile.dev and document Docker-based workflow in README and
  CLAUDE.md so contributors never need to install dependencies on the host
- Add PetTracerChargingBinarySensor (binary_sensor.py) with full test
  coverage; wire it into async_setup_entry alongside the at-home sensor

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kylegordon
kylegordon merged commit f95923a into master Jun 29, 2026
5 checks passed
@kylegordon
kylegordon deleted the feat/docker-dev-environment branch June 29, 2026 22:23
@github-actions github-actions Bot mentioned this pull request Jun 29, 2026
kylegordon added a commit that referenced this pull request Jun 29, 2026
## What's Changed
* chore(deps): update pytest-homeassistant-custom-component requirement
from >=0.13.340 to >=0.13.342 by @dependabot[bot] in
#66
* Add Docker dev environment and charging binary sensor by @kylegordon
in #67


**Full Changelog**:
v1.0.7...v1.0.8

Co-authored-by: kylegordon <231528+kylegordon@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant