✅ Add sensor tests #6
No reviewers
Labels
No labels
v1.0 · bloquant
v1.0 · majeur
v1.0 · mineur
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mat/homeassistant-comwatt!6
Loading…
Reference in a new issue
No description provided.
Delete branch "test/sensor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
tests/test_sensor.pywith 6 cases:partChilds→ power+energy per child (not on the parent).ComwattPowerSensorreadsvalues[-1]with correct unit/device-class/state-class.ComwattEnergySensoraccumulates a delta (documents current shipped behavior; see finding H4).ComwattAutoProductionRateSensormarked xfail against finding C1 (undefinedauto_production_rate).Depends on
Test plan
pytest tests/test_sensor.py— 5 passed, 1 xfailedNotes
c741403b7e0ad95aa9d0✅ (AI) Add sensor teststo ✅ Add sensor tests0ad95aa9d0c5b539e274