From 4bca0ad9560d768c473b7f398590e5e74a88abb3 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:10:17 +0200 Subject: [PATCH] Fix incorrect constants in google_travel_time tests (#119395) --- tests/components/google_travel_time/test_sensor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/components/google_travel_time/test_sensor.py b/tests/components/google_travel_time/test_sensor.py index a7fb263d4c9..57f3d7a0b98 100644 --- a/tests/components/google_travel_time/test_sensor.py +++ b/tests/components/google_travel_time/test_sensor.py @@ -9,8 +9,9 @@ from homeassistant.components.google_travel_time.const import ( CONF_ARRIVAL_TIME, CONF_DEPARTURE_TIME, DOMAIN, + UNITS_IMPERIAL, + UNITS_METRIC, ) -from homeassistant.const import CONF_UNIT_SYSTEM_IMPERIAL, CONF_UNIT_SYSTEM_METRIC from homeassistant.core import HomeAssistant from homeassistant.util.unit_system import ( METRIC_SYSTEM, @@ -208,8 +209,8 @@ async def test_sensor_arrival_time_custom_timestamp(hass: HomeAssistant) -> None @pytest.mark.parametrize( ("unit_system", "expected_unit_option"), [ - (METRIC_SYSTEM, CONF_UNIT_SYSTEM_METRIC), - (US_CUSTOMARY_SYSTEM, CONF_UNIT_SYSTEM_IMPERIAL), + (METRIC_SYSTEM, UNITS_METRIC), + (US_CUSTOMARY_SYSTEM, UNITS_IMPERIAL), ], ) async def test_sensor_unit_system(