tests: apply ruff format to CO2 assertions

This commit is contained in:
JayChickenK committed 2026-08-18 11:07:51 +02:00
1 parent 33a06b9ae8
commit 258cdc1647
2 files changed
+4 -7

No files matched your search

@@ -110,9 +110,9 @@ def test_co2_matches_air_monitor_mapping():
assert desc.unit == "ppm"
assert desc.state_class == "measurement"
assert desc.exists_fn is not None
assert desc.value_fn(
[{"x.com.samsung.da.type": "CO2", "x.com.samsung.da.value": ["498"]}]
) == 498
assert (
desc.value_fn([{"x.com.samsung.da.type": "CO2", "x.com.samsung.da.value": ["498"]}]) == 498
)
def test_every_air_quality_sensor_still_reads_a_plain_int():