| name | review-integration |
| description | Review a meter or charger integration PR or file against project patterns and rules Use when this capability is needed. |
| metadata | {"author":"dirkgroenen"} |
Review Integration
Reviews a meter or charger integration for pattern compliance, correctness, and completeness.
Step 1: Resolve Target
If PR number (e.g., 42):
- Run
gh pr diff $ARGUMENTS to get changed files
- Read all modified/added Python files in
meters/ or chargers/
If file path (e.g., custom_components/evse_load_balancer/meters/shelly_meter.py):
- Read the file directly
- Infer related files: test file, const.py changes, factory changes
Step 2: Determine Type
From file paths, determine if this is a meter or charger. Read the implementation file(s).
Step 3: Read Reference Files
Read for comparison:
custom_components/evse_load_balancer/const.py (check registration)
- Relevant factory
__init__.py (check registration)
custom_components/evse_load_balancer/config_flow.py (check filter list for chargers)
- One existing implementation of the same type for pattern comparison
- The base class (
meters/meter.py or chargers/charger.py)
Step 4: Run Checklist
Evaluate each item. Mark as PASS, FAIL, or WARN with specific file:line references.