✅ Add sensor tests #6
Loading…
Add table
Add a link
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