diff --git a/tests/components/teslemetry/test_climate.py b/tests/components/teslemetry/test_climate.py index 1ea21554659..a737fc9f376 100644 --- a/tests/components/teslemetry/test_climate.py +++ b/tests/components/teslemetry/test_climate.py @@ -194,7 +194,7 @@ async def test_climate( with pytest.raises( ServiceValidationError, match="Cabin overheat protection does not support that temperature", - ) as error: + ): # Invalid Temp await hass.services.async_call( CLIMATE_DOMAIN, @@ -202,7 +202,6 @@ async def test_climate( {ATTR_ENTITY_ID: [entity_id], ATTR_TEMPERATURE: 25}, blocking=True, ) - assert error @pytest.mark.usefixtures("entity_registry_enabled_by_default")