Update tests/integration/test_host_mode_sensor.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
J. Nick Koston
2025-06-25 14:23:59 +02:00
committed by GitHub
parent 23774ae03b
commit 7d98433502

View File

@@ -62,8 +62,8 @@ async def test_host_mode_with_sensor(
assert sensor_info.accuracy_decimals == 2, (
f"Expected accuracy_decimals=2, got {sensor_info.accuracy_decimals}"
)
assert sensor_info.state_class == 1, (
f"Expected state_class=1 (measurement), got {sensor_info.state_class}"
assert sensor_info.state_class == aioesphomeapi.StateClass.MEASUREMENT, (
f"Expected state_class=StateClass.MEASUREMENT, got {sensor_info.state_class}"
)
assert sensor_info.force_update is True, (
f"Expected force_update=True, got {sensor_info.force_update}"