Rename bms_temperature_celcius to bms_temperature_celsius
Correct the spelling in the JBD and EcoFlow snapshots, the diagnostic tool, and the tests. UPS.from_dict maps the old name to the new name, so a client still reads data from an older server during an upgrade. InfluxDB and Prometheus now receive this measurement under the new name.
This commit is contained in:
@@ -217,8 +217,8 @@ def test_snapshot_contains_power_temperature_and_times():
|
||||
assert snap.ef_input_power_watts.units == "W"
|
||||
assert snap.ef_output_power_watts.raw_value == 42
|
||||
assert snap.bms_capacity_charge_ratio.raw_value == 0.7325
|
||||
assert snap.bms_temperature_celcius.raw_values == {1: 29}
|
||||
assert snap.bms_temperature_celcius.units == "°C"
|
||||
assert snap.bms_temperature_celsius.raw_values == {1: 29}
|
||||
assert snap.bms_temperature_celsius.units == "°C"
|
||||
assert snap.ef_remaining_time_minutes.raw_value == 87
|
||||
assert snap.ef_charge_remaining_time_minutes.raw_value == 87
|
||||
assert snap.ef_discharge_remaining_time_minutes.raw_value == 240
|
||||
@@ -261,7 +261,7 @@ def test_unavailable_times_clear_previous_values_and_zero_is_valid():
|
||||
def test_short_bms_has_temperature_without_inventing_charge_status():
|
||||
dev = device()
|
||||
dev._record(heartbeat(3, bms_payload()[:21], 0x32))
|
||||
assert dev.snapshot.bms_temperature_celcius.raw_values == {1: 29}
|
||||
assert dev.snapshot.bms_temperature_celsius.raw_values == {1: 29}
|
||||
assert dev.snapshot.bms_capacity_charge_ratio.raw_value == 0.73
|
||||
assert dev.snapshot.bms_charge_is_charging is None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user